LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsevalsAgentStep
Interface●Since v1.8

AgentStep

A single model → tool-result turn in the agent trajectory.

Copy
interface AgentStep

Properties

property
action: AIMessage

The AIMessage the model produced (may contain tool calls).

property
index: number

1-based position in the trajectory.

property
observations: ToolMessage<MessageStructure<MessageToolSet>>[]

ToolMessages returned by the tool executor for each tool call in action.

View source on GitHub