pub struct AgentRequirements {Show 15 fields
pub max_cost_class: CostClass,
pub max_latency_ms: u32,
pub requires_reasoning: bool,
pub requires_web_search: bool,
pub requires_tool_use: bool,
pub requires_vision: bool,
pub min_context_tokens: Option<usize>,
pub requires_structured_output: bool,
pub requires_code: bool,
pub min_quality: f64,
pub data_sovereignty: DataSovereignty,
pub compliance: ComplianceLevel,
pub requires_multilingual: bool,
pub requires_content_generation: bool,
pub requires_business_acumen: bool,
}Expand description
Requirements for an agent’s LLM usage.
Fields§
§max_cost_class: CostClass§max_latency_ms: u32§requires_reasoning: bool§requires_web_search: bool§requires_tool_use: bool§requires_vision: bool§min_context_tokens: Option<usize>§requires_structured_output: bool§requires_code: bool§min_quality: f64§data_sovereignty: DataSovereignty§compliance: ComplianceLevel§requires_multilingual: bool§requires_content_generation: bool§requires_business_acumen: boolImplementations§
Source§impl AgentRequirements
impl AgentRequirements
pub fn fast_cheap() -> AgentRequirements
pub fn deep_research() -> AgentRequirements
pub fn balanced() -> AgentRequirements
pub fn new( max_cost_class: CostClass, max_latency_ms: u32, requires_reasoning: bool, ) -> AgentRequirements
pub fn powerful() -> AgentRequirements
pub fn with_quality(self, quality: f64) -> AgentRequirements
pub fn with_web_search(self, requires: bool) -> AgentRequirements
pub fn with_tool_use(self, requires: bool) -> AgentRequirements
pub fn with_vision(self, requires: bool) -> AgentRequirements
pub fn with_min_context(self, tokens: usize) -> AgentRequirements
pub fn with_structured_output(self, requires: bool) -> AgentRequirements
pub fn with_code(self, requires: bool) -> AgentRequirements
pub fn with_min_quality(self, quality: f64) -> AgentRequirements
pub fn with_data_sovereignty( self, sovereignty: DataSovereignty, ) -> AgentRequirements
pub fn with_compliance(self, compliance: ComplianceLevel) -> AgentRequirements
pub fn with_multilingual(self, requires: bool) -> AgentRequirements
pub fn with_content_generation(self, requires: bool) -> AgentRequirements
pub fn with_business_acumen(self, requires: bool) -> AgentRequirements
pub fn from_criteria(criteria: &SelectionCriteria) -> AgentRequirements
Trait Implementations§
Source§impl Clone for AgentRequirements
impl Clone for AgentRequirements
Source§fn clone(&self) -> AgentRequirements
fn clone(&self) -> AgentRequirements
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 AgentRequirements
impl Debug for AgentRequirements
Source§impl PartialEq for AgentRequirements
impl PartialEq for AgentRequirements
Source§fn eq(&self, other: &AgentRequirements) -> bool
fn eq(&self, other: &AgentRequirements) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentRequirements
Auto Trait Implementations§
impl Freeze for AgentRequirements
impl RefUnwindSafe for AgentRequirements
impl Send for AgentRequirements
impl Sync for AgentRequirements
impl Unpin for AgentRequirements
impl UnsafeUnpin for AgentRequirements
impl UnwindSafe for AgentRequirements
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