package documentation

Support for using the OpenAI Agents SDK as part of Temporal workflows.

This module provides compatibility between the OpenAI Agents SDK and Temporal workflows.

Warning

This module is experimental and may change in future versions. Use with caution in production environments.

Module workflow Workflow-specific primitives for working with the OpenAI Agents SDK in a workflow context
Module _heartbeat_decorator No module docstring; 0/1 type variable, 1/2 function documented
Module _invoke_model_activity A temporal activity that invokes a LLM model.
Module _model_parameters Parameters for configuring Temporal activity execution for model calls.
Module _openai_runner No module docstring; 1/1 class documented
Module _temporal_model_stub No module docstring; 0/1 variable, 0/1 function, 1/1 class documented
Module _temporal_openai_agents Initialize Temporal OpenAI Agents overrides.
Module _temporal_trace_provider Provides support for integration with OpenAI Agents SDK tracing across workflows
Module _trace_interceptor Adds OpenAI Agents traces and spans to Temporal workflows and activities.

From __init__.py:

Class ModelActivityParameters Parameters for configuring Temporal activity execution for model calls.
Class OpenAIAgentsPlugin Temporal plugin for integrating OpenAI agents with Temporal workflows.
Class TestModel Test model for use mocking model responses.
Class TestModelProvider Test model provider which simply returns the given module.