pub struct HarnessComposeOptions {
pub tool_budget: Option<u32>,
pub compact_after_chars: Option<usize>,
pub system: Vec<String>,
pub parts: Vec<HarnessPartId>,
pub components: Vec<String>,
}Expand description
Host-facing compose recipe for SessionOptions / SDKs.
Fields§
§tool_budget: Option<u32>Tool-call budget for the stock scheduler (budget part).
compact_after_chars: Option<usize>Compaction character threshold (compact part).
system: Vec<String>Extra system prompts merged into the system part.
parts: Vec<HarnessPartId>Ordered stock parts. Used when Self::components is empty.
components: Vec<String>Ordered assemble list. When non-empty, takes precedence over
Self::parts. Entries are stock names or host:<id>.
Implementations§
Source§impl HarnessComposeOptions
impl HarnessComposeOptions
pub fn to_spec( &self, tools: Vec<ToolSpec>, defaults: &HarnessConfig, ) -> MetaHarnessSpec
Sourcepub fn resolved_components(&self) -> Result<Vec<HarnessComponentRef>>
pub fn resolved_components(&self) -> Result<Vec<HarnessComponentRef>>
Resolve the ordered component list (stock + host mounts).
Sourcepub fn compose(
components: Vec<String>,
tool_budget: Option<u32>,
compact_after_chars: Option<usize>,
system: Vec<String>,
) -> Result<Self>
pub fn compose( components: Vec<String>, tool_budget: Option<u32>, compact_after_chars: Option<usize>, system: Vec<String>, ) -> Result<Self>
Build from an ordered components: [...] list.
Stock names: system, tools, budget, compact, infer.
Host mounts: host:<id> (resolved at admit time via
HostHarnessRegistry).
Trait Implementations§
Source§impl Clone for HarnessComposeOptions
impl Clone for HarnessComposeOptions
Source§impl Debug for HarnessComposeOptions
impl Debug for HarnessComposeOptions
Source§impl Default for HarnessComposeOptions
impl Default for HarnessComposeOptions
impl Eq for HarnessComposeOptions
Source§impl PartialEq for HarnessComposeOptions
impl PartialEq for HarnessComposeOptions
impl StructuralPartialEq for HarnessComposeOptions
Auto Trait Implementations§
impl Freeze for HarnessComposeOptions
impl RefUnwindSafe for HarnessComposeOptions
impl Send for HarnessComposeOptions
impl Sync for HarnessComposeOptions
impl Unpin for HarnessComposeOptions
impl UnsafeUnpin for HarnessComposeOptions
impl UnwindSafe for HarnessComposeOptions
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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<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