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
JavaScriptdeepagentsevalsAgentTrajectory
Interface●Since v1.8

AgentTrajectory

The full trajectory of an agent invocation, including intermediate steps and the final state of all files.

Copy
interface AgentTrajectory

Properties

property
files: Record<string, string>

Snapshot of every file in agent state after the run, keyed by absolute path with contents as plain strings.

property
steps: AgentStep[]

Ordered list of AgentSteps.

View source on GitHub