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§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 moreAuto 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