pub struct TaskEngineBuilder { /* private fields */ }Expand description
Builds a TaskEngine.
Implementations§
Source§impl TaskEngineBuilder
impl TaskEngineBuilder
Sourcepub fn routing(self, routing: RoutingPolicy) -> Self
pub fn routing(self, routing: RoutingPolicy) -> Self
Base routing policy; each call adds its profile’s model tag.
Sourcepub fn fallback(self, options: FallbackOptions) -> Self
pub fn fallback(self, options: FallbackOptions) -> Self
Transport retry and fallback options.
Sourcepub fn profiles(self, profiles: TaskProfiles) -> Self
pub fn profiles(self, profiles: TaskProfiles) -> Self
The profiles every task kind runs under.
Sourcepub fn prompts(
self,
source: Arc<dyn PromptSource>,
selector: PromptSelector,
) -> Self
pub fn prompts( self, source: Arc<dyn PromptSource>, selector: PromptSelector, ) -> Self
A prompt source asked for each task’s instructions, pinned or labelled by selector.
Sourcepub fn records(self, policy: RecordPolicy) -> Self
pub fn records(self, policy: RecordPolicy) -> Self
What each record keeps beyond the parsed answer.
Sourcepub fn build(self) -> TaskEngine
pub fn build(self) -> TaskEngine
The engine.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskEngineBuilder
impl !UnwindSafe for TaskEngineBuilder
impl Freeze for TaskEngineBuilder
impl Send for TaskEngineBuilder
impl Sync for TaskEngineBuilder
impl Unpin for TaskEngineBuilder
impl UnsafeUnpin for TaskEngineBuilder
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