pub struct ToolExecutionPayload {
pub tool_name: String,
pub tool_use_id: String,
pub outcome: ToolOutcome,
pub is_error: bool,
pub error_message: Option<String>,
pub latency_ms: u64,
pub input_json_size: u64,
pub result_content_size: u64,
pub user_approved: bool,
}Expand description
工具执行事件的载荷。
Fields§
§tool_name: String§tool_use_id: String§outcome: ToolOutcomeUnified outcome taxonomy: Succeeded / Failed / Timeout / etc.
is_error: bool§error_message: Option<String>§latency_ms: u64§input_json_size: u64§result_content_size: u64§user_approved: boolTrait Implementations§
Source§impl Clone for ToolExecutionPayload
impl Clone for ToolExecutionPayload
Source§fn clone(&self) -> ToolExecutionPayload
fn clone(&self) -> ToolExecutionPayload
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 ToolExecutionPayload
impl Debug for ToolExecutionPayload
Source§impl JsonSchema for ToolExecutionPayload
impl JsonSchema for ToolExecutionPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Redact for ToolExecutionPayload
impl Redact for ToolExecutionPayload
fn redact(self, policy: &RedactionPolicy) -> Self
Source§impl Serialize for ToolExecutionPayload
impl Serialize for ToolExecutionPayload
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
Auto Trait Implementations§
impl Forget for ToolExecutionPayload
impl Freeze for ToolExecutionPayload
impl Move for ToolExecutionPayload
impl RefUnwindSafe for ToolExecutionPayload
impl Send for ToolExecutionPayloadwhere
RawVecInner: Send,
impl Sync for ToolExecutionPayloadwhere
RawVecInner: Sync,
impl Unpin for ToolExecutionPayload
impl UnsafeUnpin for ToolExecutionPayload
impl UnwindSafe for ToolExecutionPayloadwhere
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