A single interaction session between a user and an AI agent, with its full context, actions, and outcomes.
An agent session is a single run of an agent definitionAgent DefinitionWorkflows & AgentsAn autonomous agent definitionView reference →: one execution with its own context window, its tool calls, and its transcript. It is the record of what the agent actually did on one occasion, as opposed to what its definition says it is allowed to do. As LLM agents moved into real workflows across 2023 to 2025, the session became the audit unit, the thing you replay when an agent's output is questioned.
A roadmapRoadmapProduct SpecificationA strategic plan of features and milestonesView reference →-triage agent runs nightly. Tonight's agent session opens with a fixed context (the current backlog, the latest metricsMetricStrategyA unified metric that measures progress, health, or behaviour across the productView reference →), makes nine tool calls, and ends by proposing that two low-traffic featuresFeatureProduct SpecificationA product capability or featureView reference → be deprecated. That proposal is captured as a decisionDecisionStrategyA recorded decision with context, rationale, and consequencesView reference →, and the session is the evidenceEvidenceValidationData supporting or refuting a hypothesisView reference → behind it: the transcript shows which metrics the agent read and how it reasoned to the recommendation. Tomorrow's session starts fresh from the same definition, with new context and a new transcript. Each run stands alone, so when someone asks why a feature was flagged, the answer points to one dated session rather than to "the agent" in the abstract.
In the Unified Product Graph, an agent session sits in the automation region and is the execution record of its agent. It connects upward through Agent DefinitionrunsAgent Sessionhierarchy, tying every run to the specification that produced it, and outward through agent_definition_runs_agent_sessionAgent SessioncreatesDecisioncross-domain, linking a run to any agent_session_creates_decisionDecisionStrategyA recorded decision with context, rationale, and consequencesView reference → it generated. Modelling the session as its own entity, distinct from both the definition above it and the decisions it yields, gives the graph a clean audit trail: you can trace any agent-made decision back to the exact run that produced it, and any run back to the agent that was allowed to make it.decision
Type-specific fields on BaseNode
session_startstringISO timestamp when the session began
session_endstringISO timestamp when the session ended
turnsnumberNumber of conversational turns in the session
tokens_usednumberTotal tokens consumed during the session
costnumberTotal monetary cost of the session
tools_invokedstring[]List of tools invoked during the session
error_countnumberNumber of errors encountered during the session
session_statusstringCurrent status of the session
output_summarystringBrief summary of the session's output
idstringrequiredUnique identifier (UUID)
typeNodeTyperequiredDiscriminator for the entity type
titlestringrequiredDisplay name
descriptionstringOptional detailed description
statusstringLifecycle status
tagsstring[]Freeform tags for filtering
4 phases — initial: active
2 edge types connected to this entity.
agent_definition_runs_agent_sessionagent_session_creates_decision