Unverified90% confidenceFactTime unknown
当LangChain工具定义为async时,StructuredTool会将函数放在coroutine属性而非func属性中
1
Sources
90%
Confidence
Long-term
Relevance
5/31/2026
First Seen
Sources
LangChain AI Agent实战:流式输出+并行工具调用完整教程
youtubeJames Briggs
Related Entities
Related Claims
UnverifiedWhen defining tools with the @tool decorator, LangChain automatically generates a JSON schema from type annotations and docstrings to send to the model; the clearer the docstring, the higher the tool-calling accuracy.60% similarUnverifiedTools are essentially function wrappers for external capabilities, paired with JSON Schema descriptions that enable the model to understand a tool's functionality and parameter format.60% similarUnverifiedLangChain的@tool装饰器通过Python的inspect模块提取函数签名,结合Pydantic进行类型验证,生成符合OpenAI Function Calling规范的JSON Schema59% similarUnverifiedThe Function Calling mechanism allows LLMs to declare in structured JSON format the external tools and parameters they need to invoke, and the tool's return value is injected as-is into the next round of model input.58% similarUnverifiedThe underlying implementation of tool calling typically relies on the Function Calling protocol, where developers describe a tool's name, parameter types, and semantics in JSON Schema format, and the model outputs structured invocation instructions conforming to the protocol format.57% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/16149API
curl https://kongchang.com/api/v1/knowledge/claims/16149MCP
get_claim(id=16149)