module documentation
Initialize Temporal OpenAI Agents overrides.
| Class | _ |
Strict pydantic deserialization with a lenient fallback. |
| Function | _data |
Undocumented |
| Function | _install |
Configure OpenInference while at least one tracing context is active. |
| Function | _lenient |
Build value into type_ without enforcing required fields. |
| Function | _set |
Undocumented |
| Function | _uninstall |
Tear down OpenInference after the final tracing context exits. |
| Variable | _otel |
Undocumented |
| Variable | _otel |
Undocumented |
| Variable | _otel |
Undocumented |
| Variable | _otel |
Undocumented |
Build value into type_ without enforcing required fields.
OpenAI's construct_type handles its own response models (and the unions/lists thereof), but not the agents dataclasses that wrap them (e.g. ModelResponse), so the dataclass layer is reconstructed here and each field delegated to construct_type. include_extras preserves the Annotated discriminators the unions rely on.
def _set_open_ai_agent_temporal_overrides(model_params:
ModelActivityParameters, start_spans_in_replay: bool = False):
(source)
¶
Undocumented