The ID of the todo item currently being executed. If null, no item is currently active (e.g., planning phase, completed state).
The user's intent extracted from their query. This is a concise summary of what the user wants to accomplish.
Indicates whether the agent is currently paused. This flag is set when HITL (Human-in-the-Loop) is triggered.
OptionalpendingPending A2A tasks that the agent is waiting for. This enables recovery after process restart by tracking submitted but incomplete A2A tasks.
The TodoItem ID that triggered the A2A delegation.
When the tasks were submitted.
The IDs of the A2A tasks being waited on.
The high-level plan describing how the agent will address the user's intent. This is a human-readable description of the overall approach.
OptionalstepA table of outputs from completed steps. This persists step outputs for use during resume operations and synthesis. Keys are step IDs, values are StepOutputEntry objects.
OptionalsuspensionSuspension context for HITL (Human-in-the-Loop) functionality. When a blocking tool is called, the agent suspends execution and stores the context here to allow resumption after user input.
The ID of the TodoItem that triggered the suspension. This identifies which step is waiting for human input.
The captured message history (ArtStandardPrompt) at the time of suspension. This allows the agent to resume execution with the correct context.
OptionalpartialToolResults?: ToolResult[]Tool results from successful tools in the same batch that completed before the suspending tool was executed. This prevents data loss when a batch contains both successful and suspending tools.
Unique identifier for this suspension event. Used to match resume requests to the correct suspension.
The specific tool call that triggered the suspension. This is the call that requires human approval or input.
The thread ID this state belongs to. Links the state to a specific conversation thread.
A concise title for the thread, typically <= 10 words. Generated based on the user's query and context.
The complete list of todo items representing the execution plan. This array contains all steps the agent needs to take, in execution order.
Represents the persistent state data for a PES Agent instance associated with a thread. This state is saved to storage and persists across multiple execution cycles.
PESAgentStateData