pub struct AgentRequest {
pub agent: String,
pub input: String,
pub schema: Option<String>,
pub caller: String,
}Expand description
One sub-agent run, as the program asked for it.
Fields§
§agent: StringThe agent’s name, exactly as the program wrote it. Not checked against
AgentProvider::agents: an unknown name is the provider’s
AgentCallError::NotFound. The policy decided on it as written, so a
provider must match it byte for byte — no case folding, Unicode
normalization or path canonicalization — and must not use it as a path.
input: StringThe task for the agent.
schema: Option<String>A JSON Schema the result must satisfy, present when the program wrote a type argument. The engine checks the result against the type itself; the schema tells the agent what shape to answer in.
caller: StringThe package whose code made the call: main for the program itself.
Trait Implementations§
Source§impl Clone for AgentRequest
impl Clone for AgentRequest
Source§impl Debug for AgentRequest
impl Debug for AgentRequest
Source§impl<'de> Deserialize<'de> for AgentRequest
impl<'de> Deserialize<'de> for AgentRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentRequest
Source§impl PartialEq for AgentRequest
impl PartialEq for AgentRequest
Source§impl Serialize for AgentRequest
impl Serialize for AgentRequest
impl StructuralPartialEq for AgentRequest
Auto Trait Implementations§
impl Freeze for AgentRequest
impl RefUnwindSafe for AgentRequest
impl Send for AgentRequest
impl Sync for AgentRequest
impl Unpin for AgentRequest
impl UnsafeUnpin for AgentRequest
impl UnwindSafe for AgentRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.