Langchain Agent Api
# LangChain Agent API
* * *
## create_agent() Complete Parameters
| Parameter | Type | Default Value | Description |
| --- | --- | --- | --- |
| model | str or BaseChatModel | None (Required) | Language model |
| tools | Sequence or None | None | Tool list. Supports @tool functions, Pydantic models, dict |
| system_prompt | str or SystemMessage or None | None | System prompt |
| middleware | Sequence | () | Middleware list |
| response_format | ResponseFormat or type or dict or None | None | Structured output configuration |
| state_schema | type or None | None | Custom state structure |
| context_schema | type or None | None | Runtime context structure |
| checkpointer | Checkpointer or None | None | Conversation persistence |
| store | BaseStore or None | None | Cross-session storage |
| interrupt_before | list or None | None | Pause before these nodes |
| interrupt_after | list or None | None | Pause after these nodes |
| debug | bool | False | Whether to output detailed |
YouTip