pub struct StreamParams {
pub model: String,
pub max_tokens: u32,
pub thinking_mode: ThinkingMode,
pub effort: Option<Effort>,
pub cache_edits: Vec<String>,
pub origin: Option<CallOrigin>,
pub input_map: Option<InputMap>,
pub provider_search: Option<ProviderSearch>,
pub usage_tap: UsageTap,
}Expand description
Parameters for a streaming LLM call.
Fields§
§model: String§max_tokens: u32§thinking_mode: ThinkingMode§effort: Option<Effort>§cache_edits: Vec<String>Cache edits: tool_use_ids whose tool result content should be deleted from the
server-side cached prefix. Wired to the Anthropic cache_edits content block.
origin: Option<CallOrigin>Where this call sits in the conversation. Carried for observers only — no adapter reads it, and it never reaches the wire.
input_map: Option<InputMap>What this turn’s user message is made of. Observers only, like origin.
provider_search: Option<ProviderSearch>Have the provider search the web itself during this call, reporting
what it found as ModelEvent::SearchResults. A provider with no
search of its own refuses the call with ModelErrorKind::Unsupported.
usage_tap: UsageTapWhere the client reports usage it learns before the call ends, so a
call that never reaches ModelEvent::EndTurn is still counted, and
what the call is charged to.
Trait Implementations§
Source§impl Clone for StreamParams
impl Clone for StreamParams
Auto Trait Implementations§
impl Forget for StreamParams
impl Freeze for StreamParams
impl Move for StreamParams
impl RefUnwindSafe for StreamParams
impl Send for StreamParams
impl Sync for StreamParams
impl Unpin for StreamParams
impl UnsafeUnpin for StreamParams
impl UnwindSafe for StreamParams
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