pub struct ChatTurnStartedAction {
pub turn_id: String,
pub started_at: String,
pub message: Message,
pub queued_message_id: Option<String>,
pub meta: Option<JsonObject>,
}Expand description
A new message has been sent to the agent, and a new turn starts.
A client is only allowed to send {@link MessageKind.User} messages.
Fields§
§turn_id: StringTurn identifier
started_at: StringISO 8601 timestamp when this turn started.
message: MessageThe new message
queued_message_id: Option<String>If this turn was auto-started from a queued message, the ID of that message
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 ChatTurnStartedAction
impl Clone for ChatTurnStartedAction
Source§fn clone(&self) -> ChatTurnStartedAction
fn clone(&self) -> ChatTurnStartedAction
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 ChatTurnStartedAction
impl Debug for ChatTurnStartedAction
Source§impl<'de> Deserialize<'de> for ChatTurnStartedAction
impl<'de> Deserialize<'de> for ChatTurnStartedAction
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 ChatTurnStartedAction
impl PartialEq for ChatTurnStartedAction
Source§impl Serialize for ChatTurnStartedAction
impl Serialize for ChatTurnStartedAction
impl StructuralPartialEq for ChatTurnStartedAction
Auto Trait Implementations§
impl Freeze for ChatTurnStartedAction
impl RefUnwindSafe for ChatTurnStartedAction
impl Send for ChatTurnStartedAction
impl Sync for ChatTurnStartedAction
impl Unpin for ChatTurnStartedAction
impl UnsafeUnpin for ChatTurnStartedAction
impl UnwindSafe for ChatTurnStartedAction
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