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.
Signature
def get_tool_by_name(name: str) -> Optional[ToolSchema]Parameters
ParamField
strNo description available.
Returns
ResponseField
Optional[ToolSchema]The result of the operation.
Source
View on GitHubpraisonaiagents/runtime/turn_context.py at line 232