Skip to main content

IrAgent

Struct IrAgent 

Source
pub struct IrAgent {
Show 14 fields pub name: String, pub span: SourceSpan, pub harness: Option<String>, pub provider: Option<String>, pub profile: Option<String>, pub capacity: Option<u32>, pub skills: Vec<String>, pub capabilities: Vec<String>, pub requires: Vec<String>, pub tools: Vec<String>, pub compaction: Option<String>, pub thread: Option<String>, pub settings: Option<String>, pub harness_class: HarnessClass,
}

Fields§

§name: String§span: SourceSpan

Where the declaration sits, so a diagnostic about this agent’s PROVIDER can point at the line that binds it rather than only at the tell that tripped over it (DR-0062). The binding is per-agent and the fix is almost always here, not at the call site.

Not part of the .ir snapshot: analysis-facing metadata, like IrEffectNode::agent.

§harness: Option<String>§provider: Option<String>§profile: Option<String>§capacity: Option<u32>§skills: Vec<String>§capabilities: Vec<String>§requires: Vec<String>

Portable feature requirements (requires [<feature.class>], DR-0015 / spec/std-agent.md slice 6): taxonomy classes the selected provider’s accepted feature report must state as supported.

§tools: Vec<String>

Workflows this agent may invoke as typed tools (DR-0025 tools [...]).

§compaction: Option<String>

Owned-harness conversation-compaction strategy (context-assembly Phase 5): summarize (default), hard_reset, tool_results, or none. None uses the harness default.

§thread: Option<String>

Owned-harness thread continuation across tells: continue or fresh. None = fresh (every tell starts from scratch).

§settings: Option<String>

Ambient-config sources a Delegated harness may read (DR-0034 Decision 4): project, user, or none. None means the provider’s own default — deliberately NOT the crippled empty set.

§harness_class: HarnessClass

The harness class (DR-0034): Managed (WhippleScript is the runtime) vs Delegated (a foreign runtime that assembles its own context). Derived from the resolved provider/harness kind at lowering.

Trait Implementations§

Source§

impl Clone for IrAgent

Source§

fn clone(&self) -> IrAgent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IrAgent

Source§

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

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

impl Eq for IrAgent

Source§

impl PartialEq for IrAgent

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IrAgent

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> Same for T

Source§

type Output = T

Should always be Self
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.