LangGraph · Function
create_react_agent
create_react_agent builds a graph that lets a language model call tools in a loop. It returns the complete message history after the model stops requesting tools.
Last updated
- Since
- v0.1
Syntax
create_react_agent(model, tools, *, prompt=None, response_format=None, pre_model_hook=None, post_model_hook=None, state_schema=None, ... )In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
create_agentToolNodeAgentStateLangGraph v1 migration guideMigrate from langgraph-supervisor