pub struct ProviderInit {
pub session_id: String,
pub model: Option<String>,
}Expand description
Per-run inputs a factory may use when constructing its provider.
Fields§
§session_id: StringThe session id — e.g. for cache-routing hints (the openai-responses
wire sets it as prompt_cache_key, codex’s rule).
model: Option<String>A model override (the model settings field, ADR-0024 §1.4). None =
the factory’s own default (env/config). Built-in factories honor it;
custom factories may ignore it.
Auto Trait Implementations§
impl Freeze for ProviderInit
impl RefUnwindSafe for ProviderInit
impl Send for ProviderInit
impl Sync for ProviderInit
impl Unpin for ProviderInit
impl UnsafeUnpin for ProviderInit
impl UnwindSafe for ProviderInit
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