pub struct HarnessConfig { /* private fields */ }Expand description
Configuration checked before an actor exists. A zero step limit or a zero model attempt count cannot construct a harness.
Implementations§
Source§impl HarnessConfig
impl HarnessConfig
pub fn new( budget: u32, compact_after_chars: usize, step_limit: u32, model_attempts: u32, system: Vec<String>, tools: Vec<ToolSpec>, ) -> Result<Self, ActorError>
Sourcepub fn with_tool_round_cap(self, cap: u32) -> Self
pub fn with_tool_round_cap(self, cap: u32) -> Self
One later completion sees no tools once this many tool results exist. The caller does not inject a user message to force that completion.
pub fn step_limit(&self) -> u32
pub fn budget(&self) -> u32
pub fn compact_after_chars(&self) -> usize
pub fn model_attempts(&self) -> u32
pub fn system(&self) -> &[String]
pub fn tools(&self) -> &[ToolSpec]
pub fn tool_round_cap(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for HarnessConfig
impl Clone for HarnessConfig
Source§impl Debug for HarnessConfig
impl Debug for HarnessConfig
impl Eq for HarnessConfig
Source§impl PartialEq for HarnessConfig
impl PartialEq for HarnessConfig
impl StructuralPartialEq for HarnessConfig
Auto Trait Implementations§
impl Freeze for HarnessConfig
impl RefUnwindSafe for HarnessConfig
impl Send for HarnessConfig
impl Sync for HarnessConfig
impl Unpin for HarnessConfig
impl UnsafeUnpin for HarnessConfig
impl UnwindSafe for HarnessConfig
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