pub struct ChatConfig {
pub model: Option<ModelSelection>,
pub effort: Option<String>,
pub scope: Option<Vec<String>>,
pub extra: Map<String, Value>,
}Expand description
Per-user, per-chat agent configuration, carried as a non-message entry in
the .chat log. Each user’s latest entry (by ts) is their selection for
this chat; provider credentials stay device-local, never in the log.
Fields§
§model: Option<ModelSelection>The model this user drives this chat with; absent → the global default.
effort: Option<String>Reasoning effort for this chat, overriding the provider file’s default where the model supports it; absent → the file default.
scope: Option<Vec<String>>The paths this chat’s agent may read and edit when the model is remote: folder roots (trailing ‘/’) and single notes. The full list is carried per entry; absent → no change, latest wins. Absent in every entry → nothing granted.
extra: Map<String, Value>Config fields this client doesn’t know about, preserved verbatim so a
merge performed by an older client can’t strip them (mirrors
Message::extra).
Trait Implementations§
Source§impl Clone for ChatConfig
impl Clone for ChatConfig
Source§fn clone(&self) -> ChatConfig
fn clone(&self) -> ChatConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ChatConfig
impl Default for ChatConfig
Source§fn default() -> ChatConfig
fn default() -> ChatConfig
Source§impl<'de> Deserialize<'de> for ChatConfig
impl<'de> Deserialize<'de> for ChatConfig
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>,
Source§impl PartialEq for ChatConfig
impl PartialEq for ChatConfig
Source§impl Serialize for ChatConfig
impl Serialize for ChatConfig
impl StructuralPartialEq for ChatConfig
Auto Trait Implementations§
impl Freeze for ChatConfig
impl RefUnwindSafe for ChatConfig
impl Send for ChatConfig
impl Sync for ChatConfig
impl Unpin for ChatConfig
impl UnsafeUnpin for ChatConfig
impl UnwindSafe for ChatConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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