pub struct DciAgentBuilder<M: CompletionModel> { /* private fields */ }Expand description
Builder for a DciAgent.
Implementations§
Source§impl<M: CompletionModel + 'static> DciAgentBuilder<M>
impl<M: CompletionModel + 'static> DciAgentBuilder<M>
Sourcepub fn new(model: M, corpus: CorpusRoot) -> Self
pub fn new(model: M, corpus: CorpusRoot) -> Self
Start building a DCI agent over model and corpus.
Sourcepub fn preamble(self, preamble: impl Into<String>) -> Self
pub fn preamble(self, preamble: impl Into<String>) -> Self
Replace the default preamble entirely.
Sourcepub fn append_preamble(self, extra: impl Into<String>) -> Self
pub fn append_preamble(self, extra: impl Into<String>) -> Self
Append domain guidance (e.g. a cyber-investigation playbook) after the base preamble.
Sourcepub fn max_turns(self, turns: usize) -> Self
pub fn max_turns(self, turns: usize) -> Self
Set the maximum number of tool-calling turns per investigation.
Sourcepub fn temperature(self, temperature: f64) -> Self
pub fn temperature(self, temperature: f64) -> Self
Set the model sampling temperature.
Sourcepub fn max_tokens(self, max_tokens: u64) -> Self
pub fn max_tokens(self, max_tokens: u64) -> Self
Set the maximum number of output tokens per turn. Required by some providers (e.g. Anthropic).
Sourcepub fn model_label(self, label: impl Into<String>) -> Self
pub fn model_label(self, label: impl Into<String>) -> Self
Set a human-readable model label recorded on telemetry events (e.g.
"gpt-4o"). Defaults to "unknown".
Auto Trait Implementations§
impl<M> Freeze for DciAgentBuilder<M>where
M: Freeze,
impl<M> RefUnwindSafe for DciAgentBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for DciAgentBuilder<M>
impl<M> Sync for DciAgentBuilder<M>
impl<M> Unpin for DciAgentBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for DciAgentBuilder<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for DciAgentBuilder<M>where
M: UnwindSafe,
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