pub struct ToolCallOutcome {
pub output: String,
pub metadata: ToolCallMetadata,
pub finish: Option<Finish>,
}Fields§
§output: String§metadata: ToolCallMetadata§finish: Option<Finish>The tool ends the run on this call, from its own typed outcome (never
from argument or output text). The dispatcher hands it to the kernel
as aidaemon_core::ToolOutput::finish; a finish without a reply
ships the call’s own output.
Implementations§
Source§impl ToolCallOutcome
impl ToolCallOutcome
pub fn from_output(output: String) -> ToolCallOutcome
pub fn contract_rejection(output: impl Into<String>) -> ToolCallOutcome
pub fn blocked(output: impl Into<String>) -> ToolCallOutcome
Sourcepub fn runtime_preparation_failure(
field: impl Into<String>,
value: impl Into<String>,
error: impl Display,
) -> ToolCallOutcome
pub fn runtime_preparation_failure( field: impl Into<String>, value: impl Into<String>, error: impl Display, ) -> ToolCallOutcome
The runtime could not prepare the invocation (no domain I/O ran). The failure names the exact declaration so the dispatcher can repair its own projections instead of reporting its mistake to the model.
pub fn completed_negative_result(output: impl Into<String>) -> ToolCallOutcome
Sourcepub fn with_finish(self, finish: Finish) -> ToolCallOutcome
pub fn with_finish(self, finish: Finish) -> ToolCallOutcome
End the run on this call (see Self::finish).
Sourcepub fn handed_to_background(self) -> ToolCallOutcome
pub fn handed_to_background(self) -> ToolCallOutcome
The call moved the rest of the work to the background: the run ends on it as partial work, and the dispatcher writes the handoff reply (it knows the user’s request and whether completion notifications reach them).
pub fn with_semantics(self, semantics: ToolCallSemantics) -> ToolCallOutcome
pub fn with_observation_evidence( self, observations: Vec<ToolObservationEvidence>, collection_observations: Vec<ToolCollectionObservation>, ) -> ToolCallOutcome
Trait Implementations§
Source§impl Clone for ToolCallOutcome
impl Clone for ToolCallOutcome
Source§fn clone(&self) -> ToolCallOutcome
fn clone(&self) -> ToolCallOutcome
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 ToolCallOutcome
impl Debug for ToolCallOutcome
Source§impl<'de> Deserialize<'de> for ToolCallOutcome
impl<'de> Deserialize<'de> for ToolCallOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolCallOutcome
Source§impl PartialEq for ToolCallOutcome
impl PartialEq for ToolCallOutcome
Source§impl Serialize for ToolCallOutcome
impl Serialize for ToolCallOutcome
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 ToolCallOutcome
Auto Trait Implementations§
impl Forget for ToolCallOutcome
impl Freeze for ToolCallOutcomewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ToolTargetHint>: Freeze,
PhantomData<ToolEvidenceCapability>: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<ToolObservationEvidence>: Freeze,
PhantomData<ToolCollectionObservation>: Freeze,
PhantomData<MessageAttachment>: Freeze,
*const RuntimePreparationFailure is !null: Freeze,
PhantomData<RuntimePreparationFailure>: Freeze,
impl Move for ToolCallOutcome
impl RefUnwindSafe for ToolCallOutcome
impl Send for ToolCallOutcome
impl Sync for ToolCallOutcome
impl Unpin for ToolCallOutcome
impl UnsafeUnpin for ToolCallOutcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ToolTargetHint>: UnsafeUnpin,
PhantomData<ToolEvidenceCapability>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<ToolObservationEvidence>: UnsafeUnpin,
PhantomData<ToolCollectionObservation>: UnsafeUnpin,
PhantomData<MessageAttachment>: UnsafeUnpin,
*const RuntimePreparationFailure is !null: UnsafeUnpin,
PhantomData<RuntimePreparationFailure>: UnsafeUnpin,
impl UnwindSafe for ToolCallOutcome
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more