pub struct ResolvedV2 {
pub id: String,
pub messages: Vec<MessageV2>,
pub attachments: Vec<Attachment>,
pub tools: Vec<Tool>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub top_k: Option<u32>,
pub max_tokens: Option<u32>,
pub stream: Option<bool>,
}Expand description
Re-exports of the v2 wire types per ADR 0015. v2 is shipped as
part of inferd-client 0.2 so consumers building against v2 can
reach the proto types without a separate inferd-proto dep.
RequestV2 with semantic validation completed.
Differences from RequestV2: attachment ids referenced from
content blocks are guaranteed to resolve; tool names referenced
from ToolUse blocks are guaranteed to be unique within the
tools[] table; sampling fields stay Option here (engine
defaults are applied at the backend layer, not the proto layer,
because they vary per backend in v2 — unlike v1 where Gemma 4
defaults could be hard-coded).
Fields§
§id: StringCaller-assigned correlation id.
messages: Vec<MessageV2>Validated conversation history.
attachments: Vec<Attachment>Validated attachment table.
tools: Vec<Tool>Validated tool definitions.
temperature: Option<f64>Sampling temperature, if set.
top_p: Option<f64>Nucleus sampling probability, if set.
top_k: Option<u32>Top-k cutoff, if set.
max_tokens: Option<u32>Max tokens, if set.
stream: Option<bool>Streaming flag, if set.
Trait Implementations§
Source§impl Clone for ResolvedV2
impl Clone for ResolvedV2
Source§fn clone(&self) -> ResolvedV2
fn clone(&self) -> ResolvedV2
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedV2
impl Debug for ResolvedV2
Source§impl PartialEq for ResolvedV2
impl PartialEq for ResolvedV2
Source§fn eq(&self, other: &ResolvedV2) -> bool
fn eq(&self, other: &ResolvedV2) -> bool
self and other values to be equal, and is used by ==.