pub struct HarnessRequestPlanInput {Show 22 fields
pub messages: Arc<Vec<Message>>,
pub system_prompt: Arc<str>,
pub tools: Option<Arc<Vec<ToolDefinition>>>,
pub model: String,
pub max_tokens: Option<u32>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<i32>,
pub presence_penalty: Option<f32>,
pub frequency_penalty: Option<f32>,
pub stream: bool,
pub tool_choice: Option<ToolChoice>,
pub parallel_tool_config: Option<Box<ParallelToolConfig>>,
pub reasoning_effort: Option<ReasoningEffortLevel>,
pub verbosity: Option<VerbosityLevel>,
pub metadata: Option<Value>,
pub context_management: Option<Value>,
pub previous_response_id: Option<String>,
pub prompt_cache_key: Option<String>,
pub prompt_cache_profile: Option<PromptCacheProfile>,
pub tool_catalog_hash: Option<u64>,
pub system_prompt_prefix_hash: Option<u64>,
}Expand description
Input parameters for building a harness request plan.
Fields§
§messages: Arc<Vec<Message>>Shared conversation history; Arc so plan construction is O(1) in
history size (no deep copy per turn).
system_prompt: Arc<str>Shared system prompt via Arc<str> so the per-turn hot path is a
refcount bump, not a full string clone.
tools: Option<Arc<Vec<ToolDefinition>>>§model: String§max_tokens: Option<u32>§temperature: Option<f32>§top_p: Option<f32>Nucleus sampling mass (0.0-1.0); resolved from custom-provider profile overrides when present.
top_k: Option<i32>Top-k token cutoff (>= 0).
presence_penalty: Option<f32>Presence penalty (-2.0-2.0).
frequency_penalty: Option<f32>Frequency penalty (-2.0-2.0).
stream: bool§tool_choice: Option<ToolChoice>§parallel_tool_config: Option<Box<ParallelToolConfig>>§reasoning_effort: Option<ReasoningEffortLevel>§verbosity: Option<VerbosityLevel>§metadata: Option<Value>§context_management: Option<Value>§previous_response_id: Option<String>§prompt_cache_key: Option<String>§prompt_cache_profile: Option<PromptCacheProfile>§tool_catalog_hash: Option<u64>§system_prompt_prefix_hash: Option<u64>Precomputed stable prefix hash of system_prompt. When supplied (the
normal path, from the memoized prompt bundle) the per-turn
build_harness_request_plan skips re-hashing the full system prompt.
Trait Implementations§
Source§impl Clone for HarnessRequestPlanInput
impl Clone for HarnessRequestPlanInput
Auto Trait Implementations§
impl Forget for HarnessRequestPlanInput
impl Freeze for HarnessRequestPlanInput
impl Move for HarnessRequestPlanInput
impl RefUnwindSafe for HarnessRequestPlanInput
impl Send for HarnessRequestPlanInput
impl Sync for HarnessRequestPlanInput
impl Unpin for HarnessRequestPlanInput
impl UnsafeUnpin for HarnessRequestPlanInput
impl UnwindSafe for HarnessRequestPlanInput
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
impl<T> CacheValue for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more