class ModelActivityParameters: (source)
Parameters for configuring Temporal activity execution for model calls.
This class encapsulates all the parameters that can be used to configure how Temporal activities are executed when making model calls through the OpenAI Agents integration.
| Class Variable | heartbeat |
Maximum time between heartbeats. For streaming (Runner.run_streamed), set this lower than start_to_close_timeout so a stuck model call is detected before the overall activity timeout fires. |
| Class Variable | retry |
Policy for retrying failed activities. |
| Class Variable | schedule |
Maximum time from scheduling to completion. |
| Class Variable | schedule |
Maximum time from scheduling to starting. |
| Class Variable | start |
Maximum time for the activity to complete. |
| Class Variable | streaming |
Interval between automatic flushes for the stream publisher used by the streaming activity. |
| Class Variable | streaming |
Stream topic to publish raw model stream events to when the workflow calls Runner.run_streamed. Required for Runner.run_streamed; if left as None, run_streamed raises before scheduling any activity. The workflow must host a ... |
| Class Variable | summary |
Summary for the activity execution. |
| Class Variable | task |
Specific task queue to use for model activities. |
| Class Variable | use |
Whether to use a local activity. If changed during a workflow execution, that would break determinism. |
| Class Variable | versioning |
Versioning intent for the activity. |
Maximum time between heartbeats. For streaming (Runner.run_streamed), set this lower than start_to_close_timeout so a stuck model call is detected before the overall activity timeout fires.
Interval between automatic flushes for the stream publisher used by the streaming activity.
Warning
Streaming support is experimental and may change in future versions.
Stream topic to publish raw model stream events to when the workflow
calls Runner.run_streamed. Required for Runner.run_streamed;
if left as None, run_streamed raises before scheduling any
activity. The workflow must host a
temporalio.contrib.workflow_streams.WorkflowStream to receive
the publishes; otherwise the signals are unhandled and dropped.
Streaming is incompatible with use_local_activity (local activities do not support heartbeats or the workflow stream signal channel).
Warning
Streaming support is experimental and may change in future versions.