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§
fn id(&self) -> &str
fn conversation(&self) -> Option<&Conversation>
Provided Methods§
fn thinking_effort(&self) -> Option<ThinkingEffort>
Sourcefn reported_context_tokens(&self) -> Option<i64>
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".