pub struct Resolved {
pub id: String,
pub messages: Vec<Message>,
pub temperature: f64,
pub top_p: f64,
pub top_k: u32,
pub max_tokens: u32,
pub stream: bool,
pub image_token_budget: Option<ImageTokenBudget>,
pub grammar: String,
}Expand description
Re-exports from inferd-proto so consumers don’t need a separate
inferd-proto dep for the wire types. The proto crate IS the
version-pin contract for protocol compatibility — inferd-client 0.2 always uses inferd-proto 0.2.
Request with all defaults applied and validation completed. Backends
receive this; they never see the optional-shaped wire form.
Fields§
§id: StringCaller-assigned correlation id; echoed on every response frame.
messages: Vec<Message>Conversation history.
temperature: f64Effective sampling temperature.
top_p: f64Effective nucleus sampling probability.
top_k: u32Effective top-k cutoff.
max_tokens: u32Effective max-tokens cap.
stream: boolEffective streaming flag.
image_token_budget: Option<ImageTokenBudget>Image token budget if the request declared one; None for text-only.
grammar: StringGBNF grammar; empty means unconstrained.
Trait Implementations§
impl StructuralPartialEq for Resolved
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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