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>,
}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.
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more