AgentSessionResource interface

An agent session providing a long-lived compute sandbox for hosted agent invocations.

Properties

agent_session_id

The session identifier.

created_at

The Unix timestamp (in seconds) when the session was created.

expires_at

The Unix timestamp (in seconds) when the session expires (rolling, 30 days from last activity).

last_accessed_at

The Unix timestamp (in seconds) when the session was last accessed.

status

The current status of the session.

stopped_at

The Unix timestamp (in seconds) when the session sandbox was last observed to stop or go idle. Present only after the session has gone idle at least once, used for accurate idle-billing reconciliation.

version_indicator

The version indicator determining which agent version backs this session.

Property Details

agent_session_id

The session identifier.

agent_session_id: string

Property Value

string

created_at

The Unix timestamp (in seconds) when the session was created.

created_at: Date

Property Value

Date

expires_at

The Unix timestamp (in seconds) when the session expires (rolling, 30 days from last activity).

expires_at: Date

Property Value

Date

last_accessed_at

The Unix timestamp (in seconds) when the session was last accessed.

last_accessed_at: Date

Property Value

Date

status

The current status of the session.

status: AgentSessionStatus

Property Value

stopped_at

The Unix timestamp (in seconds) when the session sandbox was last observed to stop or go idle. Present only after the session has gone idle at least once, used for accurate idle-billing reconciliation.

stopped_at?: Date

Property Value

Date

version_indicator

The version indicator determining which agent version backs this session.

version_indicator: VersionIndicatorUnion

Property Value