pub enum AgentAction {
Plan {
summary: String,
candidate_actions: Vec<String>,
confidence: f64,
},
Respond {
content: String,
},
CallSkills(Vec<PlannedSkillCall>),
Continue {
reason: ContinueReason,
},
Yield {
reason: Option<String>,
},
MemorySearch {
query: String,
limit: usize,
},
MemoryArchive {
content: String,
},
Suspend {
reason: SuspendReason,
pending_calls: Vec<PlannedSkillCall>,
resume_token: ResumeToken,
},
Delegate {
target: DelegationTarget,
task: DelegationTask,
correlation_id: CorrelationId,
resume_token: ResumeToken,
},
}Expand description
Common top-level kernel re-exports for quickstarts.
Variants§
Plan
Respond
CallSkills(Vec<PlannedSkillCall>)
Continue
Fields
§
reason: ContinueReasonYield
MemorySearch
MemoryArchive
Suspend
Delegate
Fields
§
target: DelegationTarget§
task: DelegationTask§
correlation_id: CorrelationId§
resume_token: ResumeTokenTrait Implementations§
Source§impl Clone for AgentAction
impl Clone for AgentAction
Source§fn clone(&self) -> AgentAction
fn clone(&self) -> AgentAction
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 AgentAction
impl Debug for AgentAction
Source§impl<'de> Deserialize<'de> for AgentAction
impl<'de> Deserialize<'de> for AgentAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentAction
impl PartialEq for AgentAction
Source§fn eq(&self, other: &AgentAction) -> bool
fn eq(&self, other: &AgentAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentAction
impl Serialize for AgentAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentAction
Auto Trait Implementations§
impl Freeze for AgentAction
impl RefUnwindSafe for AgentAction
impl Send for AgentAction
impl Sync for AgentAction
impl Unpin for AgentAction
impl UnsafeUnpin for AgentAction
impl UnwindSafe for AgentAction
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