pub struct ResolvedAgent {
pub agent_name: String,
pub model_name: String,
pub model_identifier: String,
pub provider_name: String,
pub provider: ResolvedProvider,
pub model_weights: Option<MistralrsWeights>,
pub preamble: String,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub tool_call_max: usize,
pub tool_result_max_bytes: usize,
pub image: Option<String>,
}Expand description
Fully-resolved view of one agent: every knob the agent loop needs to build a Rig client and run a turn.
For the OpenAi provider variant, the api-key is resolved from the env at
construction time. The struct lives in the agent loop, not in session
metadata, so it should never get serialized.
Fields§
§agent_name: String§model_name: String§model_identifier: String§provider_name: String§provider: ResolvedProvider§model_weights: Option<MistralrsWeights>Some for mistralrs-style models, None for openai-style. Carries
the per-model weight spec that used to live on the provider config.
preamble: String§temperature: Option<f32>§max_tokens: Option<u32>§tool_call_max: usize§tool_result_max_bytes: usize§image: Option<String>Trait Implementations§
Source§impl Clone for ResolvedAgent
impl Clone for ResolvedAgent
Source§fn clone(&self) -> ResolvedAgent
fn clone(&self) -> ResolvedAgent
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 ResolvedAgent
impl Debug for ResolvedAgent
Source§impl PartialEq for ResolvedAgent
impl PartialEq for ResolvedAgent
Source§fn eq(&self, other: &ResolvedAgent) -> bool
fn eq(&self, other: &ResolvedAgent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedAgent
Auto Trait Implementations§
impl Freeze for ResolvedAgent
impl RefUnwindSafe for ResolvedAgent
impl Send for ResolvedAgent
impl Sync for ResolvedAgent
impl Unpin for ResolvedAgent
impl UnsafeUnpin for ResolvedAgent
impl UnwindSafe for ResolvedAgent
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