pub struct TurnRunOptions {
pub model: ModelRef,
pub generation: GenerationOptions,
pub cache: CacheDirective,
pub limits: TurnLimits,
pub preparer: Option<Arc<dyn ContextPreparer>>,
pub observer: Option<Arc<RunObserver>>,
}Expand description
Choices fixed for one run; the model must be supplied explicitly.
Fields§
§model: ModelRefModel used by every logical invocation.
generation: GenerationOptionsGeneration parameters used by every logical invocation.
cache: CacheDirectiveProvider cache instruction.
limits: TurnLimitsExecution limits.
preparer: Option<Arc<dyn ContextPreparer>>Optional exclusive material preparation before each invocation.
observer: Option<Arc<RunObserver>>Optional synchronous borrowed observation callback.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TurnRunOptions
impl !UnwindSafe for TurnRunOptions
impl Freeze for TurnRunOptions
impl Send for TurnRunOptions
impl Sync for TurnRunOptions
impl Unpin for TurnRunOptions
impl UnsafeUnpin for TurnRunOptions
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