pub struct AssistantSessionSummary {
pub session_id: AssistantSessionId,
pub harness: String,
pub account: Option<String>,
pub state: AssistantSessionState,
pub reason: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub turns: u64,
pub title: Option<String>,
pub commands: Vec<AssistantCommand>,
pub config_options: Vec<AssistantConfigOption>,
}Expand description
One row of the session list.
Fields§
§session_id: AssistantSessionIdThe session’s identity.
harness: StringThe configured harness name this session runs.
account: Option<String>The configured account name, when the harness declares any.
state: AssistantSessionStateWhat the session is, right now.
reason: Option<String>Why it is in that state, in the server’s own words, or None.
An ended session carries the reason it ended; a dormant one carries why its process went away. A live one carries nothing, because nothing decided it.
created_at: DateTime<Utc>When the session was created.
updated_at: DateTime<Utc>The last time anything about the session changed.
turns: u64How many turns have been submitted on it.
title: Option<String>The first 80 characters of the first prompt, or None before one.
commands: Vec<AssistantCommand>The commands the HARNESS most recently advertised, in the order it advertised them. Empty when it has advertised none.
A projection over the transcript’s
AssistantSessionEvent::AvailableCommands records, never a stored
field, and never a list this server composes: a command a client offers
that the agent never advertised is a refusal waiting to happen, so the
only honest source is what the agent itself said.
config_options: Vec<AssistantConfigOption>The configuration options the HARNESS most recently advertised — the
model picker among them. Same rule and same reasons as commands: a
projection over the transcript’s
AssistantSessionEvent::ConfigOptions records, replaced whole by
each advertisement, never a list this server composes.
Trait Implementations§
Source§impl Clone for AssistantSessionSummary
impl Clone for AssistantSessionSummary
Source§fn clone(&self) -> AssistantSessionSummary
fn clone(&self) -> AssistantSessionSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AssistantSessionSummary
impl Debug for AssistantSessionSummary
Source§impl<'de> Deserialize<'de> for AssistantSessionSummary
impl<'de> Deserialize<'de> for AssistantSessionSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AssistantSessionSummary
Source§impl PartialEq for AssistantSessionSummary
impl PartialEq for AssistantSessionSummary
Source§impl Serialize for AssistantSessionSummary
impl Serialize for AssistantSessionSummary
impl StructuralPartialEq for AssistantSessionSummary
Source§impl TS for AssistantSessionSummary
impl TS for AssistantSessionSummary
Source§type WithoutGenerics = AssistantSessionSummary
type WithoutGenerics = AssistantSessionSummary
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = AssistantSessionSummary
type OptionInnerType = AssistantSessionSummary
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read more