Models & Messages
LangChain unifies messages and model interfaces via langchain-core. In 1.0, use provider:model strings and standardized content blocks.
Model identifiers
Format: provider:model_id; integrations read API keys from the environment.
Explicit model instances
For temperature, base_url, proxies, etc.:
Same pattern for Anthropic, Google, and others.
Message types
Agent messages typically include:
System prompt
Use middleware for dynamic system prompts.
Tool calling
Models must support tool calling. Manual bind (outside create_agent):
create_agent handles bind + loop for you.
Structured output
Agent response_format:
Model with_structured_output: for single-step nodes in workflows.
Content blocks
Rich/multimodal content is normalized as content blocks across providers.
Dynamic model selection
Middleware can swap models by task complexity for cost/quality tradeoffs.