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:
the endpoint-list URI, the default endpoint-1 credential, the model, and the
swap policy — exactly the parts IntelConfig carries plus the policy.
Boxed in ControlMsg to keep the enum small, as SpawnPayload is.
Fields§
§uri: StringThe new endpoint list URI. A list of one is the ordinary single-endpoint case; more elements are failover candidates tried in order.
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: finish-on-old (default) or restart-turn. Only
matters when model actually changed — an endpoint repoint alone never
restarts a turn.