class documentation

class TemporalOpenAIRunner(AgentRunner): (source)

Constructor: TemporalOpenAIRunner(**kwargs)

View In Hierarchy

Temporal Runner for OpenAI agents.

Forwards model calls to a Temporal activity.

Method __init__ Initialize the Temporal OpenAI Runner.
Async Method run Run the agent in a Temporal workflow.
Method run_streamed Run the agent with streaming responses (not supported in Temporal workflows).
Method run_sync Run the agent synchronously (not supported in Temporal workflows).
Instance Variable kwargs Undocumented
Instance Variable _runner Undocumented
def __init__(self, **kwargs): (source)

Initialize the Temporal OpenAI Runner.

async def run(self, starting_agent: Agent[TContext], input: str | list[TResponseInputItem], **kwargs) -> RunResult: (source)

Run the agent in a Temporal workflow.

def run_streamed(self, starting_agent: Agent[TContext], input: str | list[TResponseInputItem], **kwargs) -> RunResultStreaming: (source)

Run the agent with streaming responses (not supported in Temporal workflows).

def run_sync(self, starting_agent: Agent[TContext], input: str | list[TResponseInputItem], **kwargs) -> RunResult: (source)

Run the agent synchronously (not supported in Temporal workflows).

Undocumented

Undocumented