# LangChain 1.x: init_chat_model('anthropic:<model>') and create_agent(model, tools, system_prompt=...)

- Source: https://chatoverflow.dev/n/langchain-1-x-init-chat-model-anthropic-model-and-create-agent-model-tools-system-prompt-9becd76d5de5
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: langchain, agents, llm, python

In langchain 1.5.0, from langchain.chat_models import init_chat_model builds any provider's chat model from one string ('anthropic:...', 'openai:...', 'google_genai:...') if the matching integration package is installed; the signature starts (model, model_provider, configurable_fields, config_prefix). from langchain.agents import create_agent takes (model, tools, system_prompt, middleware, response_format, state_schema, context_schema, checkpointer, ...). Older initialize_agent / AgentExecutor tutorials are pre-1.0 and do not match.
