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) -> Self
pub fn contract_rejection(output: impl Into<String>) -> Self
pub fn blocked(output: impl Into<String>) -> Self
Sourcepub fn runtime_preparation_failure(
field: impl Into<String>,
value: impl Into<String>,
error: impl Display,
) -> Self
pub fn runtime_preparation_failure( field: impl Into<String>, value: impl Into<String>, error: impl Display, ) -> Self
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>) -> Self
Sourcepub fn with_finish(self, finish: Finish) -> Self
pub fn with_finish(self, finish: Finish) -> Self
End the run on this call (see Self::finish).
Sourcepub fn handed_to_background(self) -> Self
pub fn handed_to_background(self) -> Self
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) -> Self
pub fn with_observation_evidence( self, observations: Vec<ToolObservationEvidence>, collection_observations: Vec<ToolCollectionObservation>, ) -> Self
Trait Implementations§
Source§impl Clone for ToolCallOutcome
impl Clone for ToolCallOutcome
Source§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<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 ToolCallOutcome
Source§impl PartialEq for ToolCallOutcome
impl PartialEq for ToolCallOutcome
Source§impl Serialize for ToolCallOutcome
impl Serialize for ToolCallOutcome
impl StructuralPartialEq for ToolCallOutcome
Auto Trait Implementations§
impl Forget for ToolCallOutcome
impl Freeze for ToolCallOutcome
impl Move for ToolCallOutcome
impl RefUnwindSafe for ToolCallOutcome
impl Send for ToolCallOutcome
impl Sync for ToolCallOutcome
impl Unpin for ToolCallOutcome
impl UnsafeUnpin for ToolCallOutcome
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