class DeepAgentActivities: (source)
Constructor: DeepAgentActivities(model_provider, streaming_batch_interval)
Holds the worker-side dependencies and exposes the four activities.
An instance is created by DeepAgentsPlugin and its bound methods are registered on the worker.
| Method | __init__ |
Store the worker-side model provider + streaming configuration. |
| Async Method | backend |
Run one operation against a registered (real-I/O) backend. |
| Async Method | invoke |
Run exactly one LLM call and return the resulting AIMessage. |
| Async Method | invoke |
Stream one LLM call, publishing chunk batches to streaming_topic. |
| Async Method | invoke |
Execute one registered tool and return its ToolMessage. |
| Method | _build |
Undocumented |
| Instance Variable | _model |
Undocumented |
| Instance Variable | _streaming |
Undocumented |
Callable[ [ str], Any] | None = None, streaming_batch_interval: timedelta = timedelta(Store the worker-side model provider + streaming configuration.
Run one operation against a registered (real-I/O) backend.
Run exactly one LLM call and return the resulting AIMessage.
ModelActivityInput) -> ModelActivityOutput:
(source)
¶
Stream one LLM call, publishing chunk batches to streaming_topic.
Token-level deltas are coalesced at streaming_batch_interval and pushed to external subscribers via the shared workflow-streams topic; the aggregated final AIMessage is returned to the workflow so the durable result is identical to the non-streaming path.
Execute one registered tool and return its ToolMessage.