LangChain Reference home page
Search...
āK
Ask AI
GitHub
Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
āI
LangChain Assistant
New
History
Ask a question to get started
Enter
to send
ā¢
Shift+Enter
new line
Menu
Navigation
Projects
Anthropic
AWS
Cloudflare
DeepSeek
Google
Node
Google Cloud SQL PG
Google Common
Google GAuth
Google GenAI
Google Vertex AI
Google Vertex AI Web
Google WebAuth
Groq
Mistral AI
MongoDB
Ollama
OpenAI
OpenRouter
Overview
Chat Models
Redis
Turbopuffer
xAI
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
@langchain/openrouter
OpenRouter
AssistantMessage
Interface
v0.2.0 (latest)
ā
Since v0.1
AssistantMessage
Copy
interface
AssistantMessage
Properties
property
content
:
string
|
ChatMessageContentItem
[] |
null
property
images
:
__
type
[]
property
name
:
string
property
reasoning
:
string
|
null
property
reasoning_details
:
ReasoningDetail
[]
property
refusal
:
string
|
null
property
role
:
"assistant"
property
tool_calls
:
ChatMessageToolCall
[]
View source on GitHub
Version History