Skip to main content
Python SDK Reference / A2A Extensions / UI Extensions / Trajectory
from agentstack_sdk.a2a.extensions.ui import Trajectory
Bases: BaseModel steps. Helps track the agent’s decision-making process and provides transparency into how the agent arrived at its response. Trajectory can capture intermediate steps like:
  • A reasoning step with a message
  • A tool execution with tool name, input, and output
This information can be used for debugging, audit trails, and providing users with insight into the agent’s thought process. Visually, this may appear as an accordion component in the UI. Properties:
  • title: Title of the trajectory update.
  • content: Markdown-formatted content of the trajectory update.

Class Attributes

AttributeTypeDefault
titlestr | NoneNone
contentstr | NoneNone
group_idstr | NoneNone