pub struct TurnInvocation {
pub model: ModelRef,
pub tool_surface: ToolSurface,
pub generation: GenerationOptions,
pub cache: CacheDirective,
}Expand description
Invocation options — what the model is asked this run.
Fields§
§model: ModelRefWhich model the gateway invokes. Default: the "fake" placeholder.
tool_surface: ToolSurfaceThe tool surface advertised to the model for this run’s first
model phase — the baseline snapshot, conventionally
executor.tool_surface().await. At every later round boundary the
driver re-snapshots the runner’s ToolExecutor instead, so catalog
changes (a dynamic source bumping its listing mid-turn) reach the
next request; registering a source therefore authorizes its
evolving catalog from the second round on. Retries within one round
reuse the round’s snapshot. A hard per-round cap is a ToolUseHook
(reject) or unregister concern, not a frozen surface. Default:
empty.
generation: GenerationOptionsGeneration (sampling) parameters sent with every attempt. Default:
GenerationOptions::default().
cache: CacheDirectivePrompt-cache instruction rendered by the gateway’s translation face.
Default: CacheDirective::None.
Trait Implementations§
Source§impl Clone for TurnInvocation
impl Clone for TurnInvocation
Source§fn clone(&self) -> TurnInvocation
fn clone(&self) -> TurnInvocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more