AgentSession¶

class AgentSession[source]¶

Bases: ABC

Abstract base class for AgentApp runtime capabilities.

Methods

Attributes

connectors

Connector tool schema and execution API.

events

Frontend-visible structured run event API.

files

Persistent file API.

grid

Model-facing federation Grid API.

identity

Return this agent's stored identity, or None when unavailable.

prompt

Return the initial prompt for this AgentApp run.

space

Space messaging API, or None when unavailable for this session.

abstract property connectors: AgentConnectors¶

Connector tool schema and execution API.

abstract property events: AgentEvents¶

Frontend-visible structured run event API.

abstract property files: AgentFiles¶

Persistent file API.

abstract property grid: AgentGrid¶

Model-facing federation Grid API.

property identity: Agent | None¶

Return this agent’s stored identity, or None when unavailable.

abstract property prompt: str¶

Return the initial prompt for this AgentApp run.

property space: AgentSpace | None¶

Space messaging API, or None when unavailable for this session.