pub enum ExecutionResult {
Agent {
verdict: Verdict,
issues: Vec<AgentIssue>,
},
Human {
verdict: Verdict,
issues: Vec<HumanIssue>,
},
Runtime(RuntimeResult),
}Variants§
Implementations§
Source§impl ExecutionResult
impl ExecutionResult
pub fn verdict(&self) -> Verdict
pub fn kind(&self) -> ProfileKind
Sourcepub fn issues(&self) -> Vec<Issue>
pub fn issues(&self) -> Vec<Issue>
Every issue, most important first for an Agent, as reported otherwise.
Sourcepub fn exit_code(&self) -> Option<i32>
pub fn exit_code(&self) -> Option<i32>
A runtime result’s exit code: its issue’s, or 0 for GREEN.
Trait Implementations§
Source§impl AsRef<ExecutionResult> for GreenResult
impl AsRef<ExecutionResult> for GreenResult
Source§fn as_ref(&self) -> &ExecutionResult
fn as_ref(&self) -> &ExecutionResult
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
Source§impl Debug for ExecutionResult
impl Debug for ExecutionResult
Source§impl<'de> Deserialize<'de> for ExecutionResult
impl<'de> Deserialize<'de> for ExecutionResult
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GreenResult> for ExecutionResult
impl From<GreenResult> for ExecutionResult
Source§fn from(result: GreenResult) -> Self
fn from(result: GreenResult) -> Self
Converts to this type from the input type.
Source§impl From<ValidatedResult> for ExecutionResult
impl From<ValidatedResult> for ExecutionResult
Source§fn from(result: ValidatedResult) -> Self
fn from(result: ValidatedResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExecutionResult
impl PartialEq for ExecutionResult
Source§impl Serialize for ExecutionResult
impl Serialize for ExecutionResult
impl StructuralPartialEq for ExecutionResult
Source§impl TryFrom<ExecutionResult> for GreenResult
impl TryFrom<ExecutionResult> for GreenResult
Auto Trait Implementations§
impl Forget for ExecutionResult
impl Freeze for ExecutionResultwhere
*const u8 is !null: Freeze,
PhantomData<AgentIssue>: Freeze,
PhantomData<HumanIssue>: Freeze,
PhantomData<RuntimeIssue>: Freeze,
impl Move for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResultwhere
RawVecInner: Send,
impl Sync for ExecutionResultwhere
RawVecInner: Sync,
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<AgentIssue>: UnsafeUnpin,
PhantomData<HumanIssue>: UnsafeUnpin,
PhantomData<RuntimeIssue>: UnsafeUnpin,
impl UnwindSafe for ExecutionResultwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.