pub struct ChatTurnCompleteAction {
pub turn_id: String,
pub duration: i64,
pub meta: Option<JsonObject>,
}Expand description
Turn finished — the assistant is idle.
Fields§
§turn_id: StringTurn identifier
duration: i64Elapsed turn duration in milliseconds, measured by the producer’s own clock. Clients MUST NOT derive this by subtracting timestamps — cross- client clocks may differ — and MUST treat it as opaque, producer-supplied data.
meta: Option<JsonObject>Additional provider-specific metadata for this action.
Clients MAY look for well-known keys here to provide enhanced UI, and
agent hosts MAY use it to carry per-event context that does not fit any
other field — for example, attributing the event to a specific agent
(such as a sub-agent acting within the turn). Mirrors the MCP _meta
convention.
Trait Implementations§
Source§impl Clone for ChatTurnCompleteAction
impl Clone for ChatTurnCompleteAction
Source§fn clone(&self) -> ChatTurnCompleteAction
fn clone(&self) -> ChatTurnCompleteAction
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 ChatTurnCompleteAction
impl Debug for ChatTurnCompleteAction
Source§impl<'de> Deserialize<'de> for ChatTurnCompleteAction
impl<'de> Deserialize<'de> for ChatTurnCompleteAction
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 PartialEq for ChatTurnCompleteAction
impl PartialEq for ChatTurnCompleteAction
Source§impl Serialize for ChatTurnCompleteAction
impl Serialize for ChatTurnCompleteAction
impl StructuralPartialEq for ChatTurnCompleteAction
Auto Trait Implementations§
impl Freeze for ChatTurnCompleteAction
impl RefUnwindSafe for ChatTurnCompleteAction
impl Send for ChatTurnCompleteAction
impl Sync for ChatTurnCompleteAction
impl Unpin for ChatTurnCompleteAction
impl UnsafeUnpin for ChatTurnCompleteAction
impl UnwindSafe for ChatTurnCompleteAction
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