pub struct SessionUpdate {
pub provider: Option<String>,
pub model: Option<ModelSpec>,
pub permission_mode: Option<PermissionMode>,
pub title: Option<String>,
}Expand description
Partial update to a live session’s mutable state. Each field is optional so a caller patches only what changed; absent fields are left untouched. Catalog-dependent fields are resolved before the update takes effect.
Fields§
§provider: Option<String>Provider change, taking effect on the next turn: the conversation
continues on the named catalog provider, keeping the session id,
messages, title and permission state. model then names a model on that
provider; absent, the provider’s default. Naming the current provider is
not a switch. Refused whole, answered with Error instead of
SessionUpdated, for an unknown provider id or for another provider
while a turn is in flight; never re-routed.
model: Option<ModelSpec>Model change, taking effect on the next turn. The spec carries the
whole request, effort included: a set effort overrides the
catalog default; unset fields resolve from the catalog. Resolved on
the session’s provider — the one provider names when both are set.
permission_mode: Option<PermissionMode>Permission mode change, taking effect on the next turn without aborting an in-flight one.
title: Option<String>Rename the session. The text is trimmed; an empty (or whitespace-only) text clears the title.