pub struct SessionDetailResponse {
pub id: String,
pub created_at: String,
pub title: Option<String>,
pub messages: Vec<Value>,
pub todos: Vec<TodoItem>,
pub status: String,
pub pending_plan: Option<String>,
pub goal: Option<GoalState>,
pub first_prompt: Option<String>,
pub last_prompt: Option<String>,
pub prompt_tokens: u64,
pub completion_tokens: u64,
}Expand description
Detail response for GET /sessions/:id.
Fields§
§id: String§created_at: String§title: Option<String>Optional human-readable title (set via PATCH /sessions/:id).
messages: Vec<Value>§todos: Vec<TodoItem>Goal-167: current task list as maintained by todo_write calls.
status: StringCurrent session lifecycle state: "idle" | "plan_pending_approval".
pending_plan: Option<String>Non-null when status is "plan_pending_approval".
goal: Option<GoalState>Goal-168: active goal state, or null when no goal is set.
first_prompt: Option<String>First user message in the session (for quick display).
last_prompt: Option<String>Most recent user message in the session.
prompt_tokens: u64Total prompt tokens consumed across all turns in this session.
completion_tokens: u64Total completion tokens generated across all turns in this session.
Trait Implementations§
Source§impl Debug for SessionDetailResponse
impl Debug for SessionDetailResponse
Auto Trait Implementations§
impl Freeze for SessionDetailResponse
impl RefUnwindSafe for SessionDetailResponse
impl Send for SessionDetailResponse
impl Sync for SessionDetailResponse
impl Unpin for SessionDetailResponse
impl UnsafeUnpin for SessionDetailResponse
impl UnwindSafe for SessionDetailResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.