pub struct RunOptions {
pub use_case: UseCase,
pub model_mode: ModelMode,
pub access_mode: AccessMode,
pub allow_tools: bool,
pub max_steps: u32,
pub credit_budget: Option<u64>,
pub debug: bool,
}Expand description
Per-run policy supplied by a deployment rather than selected through conditional compilation.
Fields§
§use_case: UseCaseLogical LLM route selected by the deployment.
model_mode: ModelModeLogical quality/cost mode resolved by the deployment without exposing a provider or model ID.
access_mode: AccessModeTool mutation policy.
allow_tools: boolWhether this run may expose any tools to the model.
max_steps: u32Maximum LLM/tool loop steps requested by the caller.
credit_budget: Option<u64>Optional maximum normalized credits the run may consume.
debug: boolRequests additional sanitized diagnostic observations when enabled.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§fn clone(&self) -> RunOptions
fn clone(&self) -> RunOptions
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 RunOptions
impl Debug for RunOptions
Source§impl<'de> Deserialize<'de> for RunOptions
impl<'de> Deserialize<'de> for RunOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunOptions
Source§impl PartialEq for RunOptions
impl PartialEq for RunOptions
Source§impl Serialize for RunOptions
impl Serialize for RunOptions
impl StructuralPartialEq for RunOptions
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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