Unverified60% confidenceFactExact time
Python's @tool decorator uses setattr to attach a __tool_definition__ attribute to the function object, allowing the function to carry self-descriptive information at runtime.
2
Sources
60%
Confidence
Long-term
Relevance
5/21/2026
First Seen
Sources
Related Entities
Related Claims
Unverified可通过给@tool装饰器传入参数(如@tool("calculator", description="..."))自定义工具名称或描述77% similarVerifiedFunction Calling (Tool Use) is a standardized mechanism for large models to invoke external tools, where developers pre-declare tool names, descriptions, and parameter schemas, and the model autonomously determines when to make a call.70% similarUnverifiedTools are functions exposed by applications, containing a name, a brief description, and the required input parameters.68% similarUnverifiedTool通常包含名称、描述、输入参数Schema和执行函数四个核心要素67% similarUnverifiedA qualified Function Calling tool description should include three essential elements: when to use it, what format the parameters take, and what structure is returned.67% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1617API
curl https://kongchang.com/api/v1/knowledge/claims/1617MCP
get_claim(id=1617)