Get Tool By Name • AI Agent SDK

get_tool_by_name: Get a tool by name from the prepared tools.

get_tool_by_name

Method

</div>

This is a method of the PreparedTurnContext class in the turn_context module.

Get a tool by name from the prepared tools.

Diagram

uses

returns

Agent

Tool: get_tool_by_name

Result

Signature

python
def get_tool_by_name(name: str) -> Optional[ToolSchema]

Parameters

ParamField str

No description available.

Returns

ResponseField Optional[ToolSchema]

The result of the operation.

Source

View on GitHub

praisonaiagents/runtime/turn_context.py at line 232


Related Documentation