Skip to main content

Module patch

Module patch 

Source
Expand description

Per-turn overrides applied before request preparation without changing agent defaults.

use rig_agent::run::patch::RequestPatch;
let patch = RequestPatch::new().temperature(0.2).max_tokens(256);
assert!(!patch.is_empty());

Structs§

RequestPatch
A non-sticky patch applied only to the current turn’s completion request.