pub struct SessionLlmIdentity {
pub model: String,
pub provider: Provider,
pub self_hosted_server_id: Option<String>,
pub provider_params: Option<Value>,
pub auth_binding: Option<AuthBindingRef>,
}Expand description
Canonical durable LLM identity for a session.
Fields§
§model: String§provider: Provider§self_hosted_server_id: Option<String>§provider_params: Option<Value>§auth_binding: Option<AuthBindingRef>Realm-scoped auth binding this session resolves credentials
through. Carried on the identity so mid-session hot-swaps
(apply_live_session_llm_identity) re-resolve against the
same realm the session was created with — preventing
cross-realm credential bleed in multi-tenant setups. Dogma
§12 (dynamic policy follows dynamic identity): on swap the
factory re-enters ProviderRuntimeRegistry::resolve against
this binding, not a new synthesized env-default realm.
Projection (dogma §1/§13): canonical owner is
SessionMetadata.auth_binding; this field is the
read/write projection used by hot-swap.
Trait Implementations§
Source§impl Clone for SessionLlmIdentity
impl Clone for SessionLlmIdentity
Source§fn clone(&self) -> SessionLlmIdentity
fn clone(&self) -> SessionLlmIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionLlmIdentity
impl Debug for SessionLlmIdentity
Source§impl<'de> Deserialize<'de> for SessionLlmIdentity
impl<'de> Deserialize<'de> for SessionLlmIdentity
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
Source§impl PartialEq for SessionLlmIdentity
impl PartialEq for SessionLlmIdentity
Source§fn eq(&self, other: &SessionLlmIdentity) -> bool
fn eq(&self, other: &SessionLlmIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionLlmIdentity
impl Serialize for SessionLlmIdentity
impl StructuralPartialEq for SessionLlmIdentity
Auto Trait Implementations§
impl Freeze for SessionLlmIdentity
impl RefUnwindSafe for SessionLlmIdentity
impl Send for SessionLlmIdentity
impl Sync for SessionLlmIdentity
impl Unpin for SessionLlmIdentity
impl UnsafeUnpin for SessionLlmIdentity
impl UnwindSafe for SessionLlmIdentity
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