pub struct ToolCompletedData {Show 13 fields
pub tool_call_id: String,
pub tool_name: String,
pub tool_call_fingerprint: Option<String>,
pub tool_result_fingerprint: Option<String>,
pub display_name: Option<String>,
pub success: bool,
pub status: String,
pub result: Option<Vec<ContentPart>>,
pub error: Option<String>,
pub duration_ms: Option<u64>,
pub capability_id: Option<String>,
pub capability_name: Option<String>,
pub narration: Option<String>,
}Expand description
Data for tool.completed event
Fields§
§tool_call_id: StringTool call ID
tool_name: StringTool name
tool_call_fingerprint: Option<String>Stable fingerprint of tool name + normalized arguments.
tool_result_fingerprint: Option<String>Stable fingerprint of tool name + normalized result/error.
display_name: Option<String>Human-readable display name for UI rendering
success: boolWhether the tool call succeeded
status: StringStatus: “success”, “error”, “timeout”, “cancelled”
result: Option<Vec<ContentPart>>Result content (for successful calls)
error: Option<String>Error message if failed
duration_ms: Option<u64>Duration of the tool call in milliseconds
capability_id: Option<String>Capability that contributed the tool definition, when known.
capability_name: Option<String>Human-readable capability name snapshot, when known.
narration: Option<String>Human-readable narration for timeline rendering
Implementations§
Source§impl ToolCompletedData
impl ToolCompletedData
pub fn success( tool_call_id: String, tool_name: String, result: Vec<ContentPart>, duration_ms: Option<u64>, ) -> Self
pub fn failure( tool_call_id: String, tool_name: String, status: String, error: String, duration_ms: Option<u64>, ) -> Self
Sourcepub fn with_display_name(self, display_name: Option<String>) -> Self
pub fn with_display_name(self, display_name: Option<String>) -> Self
Set display name on this event data
pub fn with_fingerprints( self, tool_call_fingerprint: String, tool_result_fingerprint: String, ) -> Self
Sourcepub fn with_narration(self, narration: Option<String>) -> Self
pub fn with_narration(self, narration: Option<String>) -> Self
Set narration on this event data
Trait Implementations§
Source§impl Clone for ToolCompletedData
impl Clone for ToolCompletedData
Source§fn clone(&self) -> ToolCompletedData
fn clone(&self) -> ToolCompletedData
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 ToolCompletedData
impl Debug for ToolCompletedData
Source§impl<'de> Deserialize<'de> for ToolCompletedData
impl<'de> Deserialize<'de> for ToolCompletedData
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
Source§impl From<ToolCompletedData> for EventData
impl From<ToolCompletedData> for EventData
Source§fn from(data: ToolCompletedData) -> Self
fn from(data: ToolCompletedData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolCompletedData
impl RefUnwindSafe for ToolCompletedData
impl Send for ToolCompletedData
impl Sync for ToolCompletedData
impl Unpin for ToolCompletedData
impl UnsafeUnpin for ToolCompletedData
impl UnwindSafe for ToolCompletedData
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>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request