#[non_exhaustive]pub enum AgentAction {
Respond {
output: RunOutput,
},
RequestModel {
request: ModelRequest,
},
RequestEffect {
request: EffectRequest,
},
RequestEffects {
requests: Vec<EffectRequest>,
},
}Expand description
Next action requested by a step-wise agent kernel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Respond
The run is complete.
RequestModel
The outer runtime should execute a provider request and feed back
Observation::Model.
Fields
§
request: ModelRequestProvider request.
RequestEffect
The outer runtime should govern and execute an effect request, then
feed back Observation::Effect.
Fields
§
request: EffectRequestEffect request.
RequestEffects
The outer runtime should govern and execute multiple effect requests,
then feed back Observation::Effects.
Fields
§
requests: Vec<EffectRequest>Effect requests.
Trait 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 PartialEq for AgentAction
impl PartialEq for AgentAction
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