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() -> Self
pub fn deep_research() -> Self
pub fn balanced() -> Self
pub fn new( max_cost_class: CostClass, max_latency_ms: u32, requires_reasoning: bool, ) -> Self
pub fn powerful() -> Self
pub fn with_quality(self, quality: f64) -> Self
pub fn with_web_search(self, requires: bool) -> Self
pub fn with_tool_use(self, requires: bool) -> Self
pub fn with_vision(self, requires: bool) -> Self
pub fn with_min_context(self, tokens: usize) -> Self
pub fn with_structured_output(self, requires: bool) -> Self
pub fn with_code(self, requires: bool) -> Self
pub fn with_min_quality(self, quality: f64) -> Self
pub fn with_data_sovereignty(self, sovereignty: DataSovereignty) -> Self
pub fn with_compliance(self, compliance: ComplianceLevel) -> Self
pub fn with_multilingual(self, requires: bool) -> Self
pub fn with_content_generation(self, requires: bool) -> Self
pub fn with_business_acumen(self, requires: bool) -> Self
pub fn from_criteria(criteria: &SelectionCriteria) -> Self
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 · 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
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