ArchAstro. Types. AgentSession
(archastro v0.2.0)
Copy Markdown
A durable agent session record representing a single AI task execution. Tracks status, trajectory, result, and any inbox messages delivered to the session.
Summary
Types
@type t() :: %ArchAstro.Types.AgentSession{ agent: String.t() | ArchAstro.Unset.t(), completed_at: DateTime.t() | ArchAstro.Unset.t(), created_at: DateTime.t() | ArchAstro.Unset.t(), error: String.t() | ArchAstro.Unset.t(), id: String.t(), inbox: [%{optional(String.t()) => ArchAstro.JSON.t()}] | ArchAstro.Unset.t(), instructions: String.t() | ArchAstro.Unset.t(), is_system_session: boolean() | ArchAstro.Unset.t(), max_runs_per_turn: integer() | ArchAstro.Unset.t(), max_tokens: integer() | ArchAstro.Unset.t(), max_turns: integer() | ArchAstro.Unset.t(), metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), name: String.t() | ArchAstro.Unset.t(), result: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), started_at: DateTime.t() | ArchAstro.Unset.t(), status: String.t() | ArchAstro.Unset.t(), trajectory: String.t() | ArchAstro.Unset.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()