Skip to main content

AgentRequirements

Struct AgentRequirements 

Source
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: bool

Implementations§

Source§

impl AgentRequirements

Source

pub fn fast_cheap() -> Self

Source

pub fn deep_research() -> Self

Source

pub fn balanced() -> Self

Source

pub fn new( max_cost_class: CostClass, max_latency_ms: u32, requires_reasoning: bool, ) -> Self

Source

pub fn powerful() -> Self

Source

pub fn with_quality(self, quality: f64) -> Self

Source

pub fn with_tool_use(self, requires: bool) -> Self

Source

pub fn with_vision(self, requires: bool) -> Self

Source

pub fn with_min_context(self, tokens: usize) -> Self

Source

pub fn with_structured_output(self, requires: bool) -> Self

Source

pub fn with_code(self, requires: bool) -> Self

Source

pub fn with_min_quality(self, quality: f64) -> Self

Source

pub fn with_data_sovereignty(self, sovereignty: DataSovereignty) -> Self

Source

pub fn with_compliance(self, compliance: ComplianceLevel) -> Self

Source

pub fn with_multilingual(self, requires: bool) -> Self

Source

pub fn with_content_generation(self, requires: bool) -> Self

Source

pub fn with_business_acumen(self, requires: bool) -> Self

Source

pub fn from_criteria(criteria: &SelectionCriteria) -> Self

Trait Implementations§

Source§

impl Clone for AgentRequirements

Source§

fn clone(&self) -> AgentRequirements

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AgentRequirements

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AgentRequirements

Source§

fn eq(&self, other: &AgentRequirements) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for AgentRequirements

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.