pub struct StepLayer<P> { /* private fields */ }Expand description
Layer that lifts a routed tool service S into a Step<S> service.
Implementations§
Source§impl<P> StepLayer<P>
impl<P> StepLayer<P>
pub fn new( provider: P, model: impl Into<String>, tool_specs: Vec<ChatCompletionTool>, ) -> Self
pub fn temperature(self, t: f32) -> Self
pub fn max_tokens(self, mt: u32) -> Self
pub fn parallel_tools(self, enabled: bool) -> Self
pub fn tool_concurrency_limit(self, limit: usize) -> Self
pub fn tool_join_policy(self, policy: ToolJoinPolicy) -> Self
pub fn reasoning_effort(self, effort: ReasoningEffort) -> Self
pub fn instructions(self, text: impl Into<String>) -> Self
pub fn instruction_provider( self, provider: Arc<dyn LLMInstructionProvider>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for StepLayer<P>where
P: Freeze,
impl<P> !RefUnwindSafe for StepLayer<P>
impl<P> Send for StepLayer<P>where
P: Send,
impl<P> Sync for StepLayer<P>where
P: Sync,
impl<P> Unpin for StepLayer<P>where
P: Unpin,
impl<P> !UnwindSafe for StepLayer<P>
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
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