class documentation

class TemporalActivityTool(AgentTool): (source)

Constructor: TemporalActivityTool(activity_fn, options)

View In Hierarchy

Strands AgentTool whose body dispatches a Temporal activity.

Method __init__ Capture the target activity and the options to invoke it with.
Async Method stream Execute the tool by dispatching to the bound Temporal activity.
Property tool_name Name of the underlying Temporal activity.
Property tool_spec Strands ToolSpec derived from the activity's signature.
Property tool_type Tool kind identifier used by Strands.
Instance Variable _activity_name Undocumented
Instance Variable _options Undocumented
Instance Variable _signature Undocumented
Instance Variable _spec Undocumented
def __init__(self, activity_fn: Callable, options: dict[str, Any]): (source)

Capture the target activity and the options to invoke it with.

async def stream(self, tool_use: ToolUse, invocation_state: dict[str, Any], **kwargs: Any) -> ToolGenerator: (source)

Execute the tool by dispatching to the bound Temporal activity.

Name of the underlying Temporal activity.

tool_spec: ToolSpec = (source)

Strands ToolSpec derived from the activity's signature.

Tool kind identifier used by Strands.

_activity_name = (source)

Undocumented

_options = (source)

Undocumented

_signature = (source)

Undocumented

_spec: ToolSpec = (source)

Undocumented