pub struct TurnOptions {
pub tool_runtime: ToolRuntime,
pub strict_durability: bool,
}Expand description
Options that control how a single run_turn invocation behaves.
The default is suitable for local/CLI usage (inline tools, no extra
durability). Server mode should set tool_runtime: External and
strict_durability: true.
Fields§
§tool_runtime: ToolRuntimeHow tool calls should be handled.
strict_durability: boolWhen true, state is checkpointed at every critical boundary (before LLM call, after LLM response, after tool execution). Provides crash-safe server semantics at the cost of extra writes.
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 (const: unstable) · 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