Skip to main content

Crate ag_session

Crate ag_session 

Source
Expand description

Frontend-neutral session management API and shared session models.

Host applications implement SessionBackend to connect the stable programmatic API to their persistence, agent, Git, and forge workflows. Callers such as future orchestrator sessions use SessionService without depending on terminal UI state.

Structs§

AnswerQuestionsRequest
Structured input for resuming one session from clarification questions.
CoordinatorMessageRequest
Durable coordinator-owned turn submitted to one controller session.
CreateSessionRequest
Explicit input for creating one session.
QuestionAnswer
One structured response to a persisted clarification question.
ReviewRequest
Persisted forge linkage for one session.
ReviewRequestSummary
Normalized remote summary for one linked review request.
Session
Complete persisted session aggregate returned by the programmatic API.
SessionId
Shared stable identifier for one session.
SessionMessage
One persisted transcript message for a session.
SessionMessageKindParseError
Error returned when a stored session message kind is unknown.
SessionService
Stable programmatic facade for session lifecycle operations.
SessionSettings
Complete session-scoped execution settings returned by the API.
SessionTranscript
Ordered transcript view assembled from persisted session messages.

Enums§

CoordinatorMessageVisibility
Transcript treatment for one coordinator-owned prompt.
CreateSessionMode
Creation strategy for a new session.
ForgeKind
Shared forge family enum reused by persistence and forge adapters.
ReviewRequestState
Normalized remote lifecycle state for one linked review request.
SessionError
Stable error returned by crate::SessionService operations.
SessionMessageKind
Durable category for one saved session transcript message.
SessionRole
Role one session plays in a multi-session workflow.
SessionStatus
High-level lifecycle state for one session.
SpeedMode
Response-speed preference applied to one agent session.

Traits§

SessionBackend
Host implementation boundary for session persistence and workflows.

Functions§

activity_day_key_with_offset
Converts Unix timestamp seconds to a day key after applying a UTC offset.
normalized_message_content
Returns raw persisted message content with only outer whitespace removed.
stored_message_content
Returns the durable message content for one kind.