nat.plugins.strands.tool_wrapper#
Attributes#
Classes#
Concrete Strands AgentTool that wraps a NAT Function. |
Functions#
|
|
|
|
|
|
|
Create a Strands |
Module Contents#
- logger#
- class NATFunctionAgentTool(
- name: str,
- description: str | None,
- input_schema: dict[str, Any],
- fn: nat.builder.function.Function,
Bases:
strands.types.tools.AgentToolConcrete Strands AgentTool that wraps a NAT Function.
- _tool_name#
- _tool_spec: strands.types.tools.ToolSpec#
- _fn#
- property tool_spec: strands.types.tools.ToolSpec#
- async stream( ) collections.abc.AsyncGenerator[Any, None]#
Stream tool events and return the final result.
Parameters#
- tool_useToolUse
The tool use request containing tool ID and parameters.
- _invocation_statedict[str, Any]
Unused parameter for compatibility.
- _kwargsAny
Unused parameter for compatibility.
Yields#
Tool events with the last being the tool result.
- strands_tool_wrapper(
- name: str,
- fn: nat.builder.function.Function,
- _builder: nat.builder.builder.Builder,
Create a Strands
AgentToolwrapper for a NATFunction.