pub struct TurnOptions {
pub output_schema: Option<Value>,
pub cancellation_token: Option<CancellationToken>,
}Expand description
Per-turn options for crate::Thread::run and crate::Thread::run_streamed.
Fields§
§output_schema: Option<Value>JSON schema describing expected agent output.
cancellation_token: Option<CancellationToken>Cancellation token used to abort an in-flight turn.
Trait Implementations§
Source§impl Clone for TurnOptions
impl Clone for TurnOptions
Source§fn clone(&self) -> TurnOptions
fn clone(&self) -> TurnOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TurnOptions
impl Debug for TurnOptions
Source§impl Default for TurnOptions
impl Default for TurnOptions
Source§fn default() -> TurnOptions
fn default() -> TurnOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnOptions
impl RefUnwindSafe for TurnOptions
impl Send for TurnOptions
impl Sync for TurnOptions
impl Unpin for TurnOptions
impl UnsafeUnpin for TurnOptions
impl UnwindSafe for TurnOptions
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