pub struct ToolActionEvent {
pub tool_action_id: ToolActionId,
pub tool_name: Option<String>,
pub request_state: ToolRequestState,
pub execution_state: ToolExecutionState,
pub result_state: ToolResultState,
pub request_payload: Option<String>,
pub result_payload: Option<String>,
pub terminal_outcome: Option<ToolTerminalOutcome>,
pub waiting_for: Option<String>,
}Expand description
Tool-action event payload.
Fields§
§tool_action_id: ToolActionIdStable tool action id.
tool_name: Option<String>Tool name when known (complete only for ready/resolved).
request_state: ToolRequestStateRequest state.
execution_state: ToolExecutionStateExecution state.
result_state: ToolResultStateResult state.
request_payload: Option<String>Complete request payload JSON when ready (not partial fragments).
result_payload: Option<String>Complete result payload when resolved.
terminal_outcome: Option<ToolTerminalOutcome>Terminal outcome when known.
waiting_for: Option<String>What the action is waiting for (when waiting).
Trait Implementations§
Source§impl Clone for ToolActionEvent
impl Clone for ToolActionEvent
Source§fn clone(&self) -> ToolActionEvent
fn clone(&self) -> ToolActionEvent
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 ToolActionEvent
impl Debug for ToolActionEvent
Source§impl<'de> Deserialize<'de> for ToolActionEvent
impl<'de> Deserialize<'de> for ToolActionEvent
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 ToolActionEvent
Source§impl PartialEq for ToolActionEvent
impl PartialEq for ToolActionEvent
Source§impl Serialize for ToolActionEvent
impl Serialize for ToolActionEvent
impl StructuralPartialEq for ToolActionEvent
Auto Trait Implementations§
impl Freeze for ToolActionEvent
impl RefUnwindSafe for ToolActionEvent
impl Send for ToolActionEvent
impl Sync for ToolActionEvent
impl Unpin for ToolActionEvent
impl UnsafeUnpin for ToolActionEvent
impl UnwindSafe for ToolActionEvent
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