pub struct SwapIntel {
pub uri: String,
pub token: Option<String>,
pub model: Option<String>,
pub policy: SwapPolicy,
}Expand description
The intelligence config the child rebuilds its client from on a hot-swap (RFC
0018 §5.2). The endpoint-list URI + the default endpoint-1 credential + the
model + the swap policy — exactly the parts IntelConfig carries plus the
policy. Boxed in ControlMsg to keep the enum small (like SpawnPayload).
Fields§
§uri: StringThe new endpoint list URI (RFC 0018 §3.1) — a single element is RFC 0006.
token: Option<String>Endpoint 1’s resolved default credential when its env override is unset
(the same role as IntelConfig::token); NEVER logged.
model: Option<String>The new model (None ⇒ unchanged from the spawn payload’s resolved model).
policy: SwapPolicyThe model-swap policy (RFC 0018 §5.3): finish-on-old (default) |
restart-turn. Only matters when model actually changed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwapIntel
impl<'de> Deserialize<'de> for SwapIntel
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SwapIntel
impl RefUnwindSafe for SwapIntel
impl Send for SwapIntel
impl Sync for SwapIntel
impl Unpin for SwapIntel
impl UnsafeUnpin for SwapIntel
impl UnwindSafe for SwapIntel
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
Mutably borrows from an owned value. Read more