AI Agents · Function
function_tool
LangChain tools are callable functions that give agents access to data, code, databases, and actions. A chat model chooses when to call a tool and what arguments to pass.
Last updated
Syntax
@tool
def function_name(parameters) -> return_type:
"""Tool description."""
...In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
AgentsChat modelsTool callingTool integrationsLangSmith