Skip to main content

MachineSession

Trait MachineSession 

Source
pub trait MachineSession: MaybeSend + MaybeSync {
    // Required methods
    fn id(&self) -> &str;
    fn conversation(&self) -> Option<&Conversation>;

    // Provided methods
    fn thinking_effort(&self) -> Option<ThinkingEffort> { ... }
    fn reported_context_tokens(&self) -> Option<i64> { ... }
}

Required Methods§

Source

fn id(&self) -> &str

Source

fn conversation(&self) -> Option<&Conversation>

Provided Methods§

Source

fn thinking_effort(&self) -> Option<ThinkingEffort>

Source

fn reported_context_tokens(&self) -> Option<i64>

The context size the provider reported for the latest request, when the host tracks it. Compaction estimates the size itself otherwise.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§