The simplest Strands + Temporal sample: one TemporalAgent invoked once. Every model call runs as an invoke_model Temporal activity, so it gets durable retries, timeouts, and crash recovery for free.
- Wiring
StrandsPluginonto the client and worker - Constructing a
TemporalAgentwith no explicit model (defaults toBedrockModel()) - Invoking the agent from a
@workflow.defn
Prerequisites: uv sync --group strands-agents, AWS credentials with Bedrock access, and a running Temporal dev server (temporal server start-dev).
# Terminal 1
uv run strands_plugin/hello_world/run_worker.py
# Terminal 2
uv run strands_plugin/hello_world/run_workflow.py| File | Description |
|---|---|
workflow.py |
HelloWorldWorkflow with a single TemporalAgent |
run_worker.py |
Registers StrandsPlugin, starts the worker |
run_workflow.py |
Executes the workflow and prints the result |