pub enum Event {
Show 36 variants
TextMessageStart(TextMessageStartEvent),
TextMessageContent(TextMessageContentEvent),
TextMessageEnd(TextMessageEndEvent),
TextMessageChunk(TextMessageChunkEvent),
ToolCallStart(ToolCallStartEvent),
ToolCallArgs(ToolCallArgsEvent),
ToolCallEnd(ToolCallEndEvent),
ToolCallChunk(ToolCallChunkEvent),
ToolCallResult(ToolCallResultEvent),
ThinkingStart(ThinkingStartEvent),
ThinkingEnd(ThinkingEndEvent),
ThinkingTextMessageStart(ThinkingTextMessageStartEvent),
ThinkingTextMessageContent(ThinkingTextMessageContentEvent),
ThinkingTextMessageEnd(ThinkingTextMessageEndEvent),
StateSnapshot(StateSnapshotEvent),
StateDelta(StateDeltaEvent),
MessagesSnapshot(MessagesSnapshotEvent),
ActivitySnapshot(ActivitySnapshotEvent),
ActivityDelta(ActivityDeltaEvent),
Raw(RawEvent),
Custom(CustomEvent),
RunStarted(RunStartedEvent),
RunFinished(RunFinishedEvent),
RunError(RunErrorEvent),
StepStarted(StepStartedEvent),
StepFinished(StepFinishedEvent),
ReasoningStart(ReasoningStartEvent),
ReasoningMessageStart(ReasoningMessageStartEvent),
ReasoningMessageContent(ReasoningMessageContentEvent),
ReasoningMessageEnd(ReasoningMessageEndEvent),
ReasoningMessageChunk(ReasoningMessageChunkEvent),
ReasoningEnd(ReasoningEndEvent),
ReasoningEncryptedValue(ReasoningEncryptedValueEvent),
SubagentStarted(SubagentStartedEvent),
SubagentFinished(SubagentFinishedEvent),
SubagentError(SubagentErrorEvent),
}Expand description
One event in an AG-UI stream.
Serializes as the payload’s fields plus a type discriminator, so
there is no nesting on the wire.
§Exhaustive on purpose
This enum is deliberately not #[non_exhaustive], unlike every
error type in this workspace. A new protocol event should be a
compile error where you match on events: that is what a typed SDK
buys you over serde_json::Value, and the alternative — a _ arm
in every consumer — is exactly how the previous Rust SDK came to be
missing eight event types without anyone noticing.
The consequence is that adding an event is a major version of this
crate. That is the intended price; see docs/DESIGN.md.
Variants§
TextMessageStart(TextMessageStartEvent)
Opens a text message. See TextMessageStartEvent.
TextMessageContent(TextMessageContentEvent)
Appends to a text message. See TextMessageContentEvent.
TextMessageEnd(TextMessageEndEvent)
Closes a text message. See TextMessageEndEvent.
TextMessageChunk(TextMessageChunkEvent)
A whole text update in one event. See TextMessageChunkEvent.
ToolCallStart(ToolCallStartEvent)
Opens a tool call. See ToolCallStartEvent.
ToolCallArgs(ToolCallArgsEvent)
Appends tool-call arguments. See ToolCallArgsEvent.
ToolCallEnd(ToolCallEndEvent)
Closes a tool call. See ToolCallEndEvent.
ToolCallChunk(ToolCallChunkEvent)
A whole tool call in one event. See ToolCallChunkEvent.
ToolCallResult(ToolCallResultEvent)
A tool call’s result. See ToolCallResultEvent.
ThinkingStart(ThinkingStartEvent)
Opens a thinking block. See ThinkingStartEvent.
ThinkingEnd(ThinkingEndEvent)
Closes a thinking block. See ThinkingEndEvent.
ThinkingTextMessageStart(ThinkingTextMessageStartEvent)
Opens a thinking message. See ThinkingTextMessageStartEvent.
ThinkingTextMessageContent(ThinkingTextMessageContentEvent)
Appends thinking text. See ThinkingTextMessageContentEvent.
ThinkingTextMessageEnd(ThinkingTextMessageEndEvent)
Closes a thinking message. See ThinkingTextMessageEndEvent.
StateSnapshot(StateSnapshotEvent)
Replaces the shared state. See StateSnapshotEvent.
StateDelta(StateDeltaEvent)
Patches the shared state. See StateDeltaEvent.
MessagesSnapshot(MessagesSnapshotEvent)
Replaces the message history. See MessagesSnapshotEvent.
ActivitySnapshot(ActivitySnapshotEvent)
Publishes an activity. See ActivitySnapshotEvent.
ActivityDelta(ActivityDeltaEvent)
Patches an activity. See ActivityDeltaEvent.
Raw(RawEvent)
Forwards a provider event. See RawEvent.
Custom(CustomEvent)
An application-defined event. See CustomEvent.
RunStarted(RunStartedEvent)
Starts a run. See RunStartedEvent.
RunFinished(RunFinishedEvent)
Finishes or pauses a run. See RunFinishedEvent.
RunError(RunErrorEvent)
Fails a run. See RunErrorEvent.
StepStarted(StepStartedEvent)
Starts a step. See StepStartedEvent.
StepFinished(StepFinishedEvent)
Finishes a step. See StepFinishedEvent.
ReasoningStart(ReasoningStartEvent)
Opens a reasoning block. See ReasoningStartEvent.
ReasoningMessageStart(ReasoningMessageStartEvent)
Opens a reasoning message. See ReasoningMessageStartEvent.
ReasoningMessageContent(ReasoningMessageContentEvent)
Appends reasoning text. See ReasoningMessageContentEvent.
ReasoningMessageEnd(ReasoningMessageEndEvent)
Closes a reasoning message. See ReasoningMessageEndEvent.
ReasoningMessageChunk(ReasoningMessageChunkEvent)
A whole reasoning update in one event. See ReasoningMessageChunkEvent.
ReasoningEnd(ReasoningEndEvent)
Closes a reasoning block. See ReasoningEndEvent.
ReasoningEncryptedValue(ReasoningEncryptedValueEvent)
Carries an encrypted reasoning blob. See ReasoningEncryptedValueEvent.
SubagentStarted(SubagentStartedEvent)
Announces a subagent invocation. See SubagentStartedEvent.
SubagentFinished(SubagentFinishedEvent)
Closes a subagent invocation. See SubagentFinishedEvent.
SubagentError(SubagentErrorEvent)
Fails a subagent invocation. See SubagentErrorEvent.
Implementations§
Source§impl Event
impl Event
Sourcepub fn text_message_start(
message_id: impl Into<MessageId>,
role: TextMessageRole,
) -> Self
pub fn text_message_start( message_id: impl Into<MessageId>, role: TextMessageRole, ) -> Self
TEXT_MESSAGE_START — opens a text message.
Sourcepub fn text_message_content(
message_id: impl Into<MessageId>,
delta: impl Into<String>,
) -> Self
pub fn text_message_content( message_id: impl Into<MessageId>, delta: impl Into<String>, ) -> Self
TEXT_MESSAGE_CONTENT — appends text to an open message.
Sourcepub fn text_message_end(message_id: impl Into<MessageId>) -> Self
pub fn text_message_end(message_id: impl Into<MessageId>) -> Self
TEXT_MESSAGE_END — closes a text message.
Sourcepub fn text_message_chunk(
message_id: Option<MessageId>,
delta: Option<String>,
) -> Self
pub fn text_message_chunk( message_id: Option<MessageId>, delta: Option<String>, ) -> Self
TEXT_MESSAGE_CHUNK — a whole text update in one event.
Sourcepub fn tool_call_start(
tool_call_id: impl Into<ToolCallId>,
tool_call_name: impl Into<String>,
) -> Self
pub fn tool_call_start( tool_call_id: impl Into<ToolCallId>, tool_call_name: impl Into<String>, ) -> Self
TOOL_CALL_START — opens a tool call.
Sourcepub fn tool_call_args(
tool_call_id: impl Into<ToolCallId>,
delta: impl Into<String>,
) -> Self
pub fn tool_call_args( tool_call_id: impl Into<ToolCallId>, delta: impl Into<String>, ) -> Self
TOOL_CALL_ARGS — appends argument JSON to an open call.
Sourcepub fn tool_call_end(tool_call_id: impl Into<ToolCallId>) -> Self
pub fn tool_call_end(tool_call_id: impl Into<ToolCallId>) -> Self
TOOL_CALL_END — closes a tool call.
Sourcepub fn tool_call_chunk(
tool_call_id: Option<ToolCallId>,
tool_call_name: Option<String>,
delta: Option<String>,
) -> Self
pub fn tool_call_chunk( tool_call_id: Option<ToolCallId>, tool_call_name: Option<String>, delta: Option<String>, ) -> Self
TOOL_CALL_CHUNK — a whole tool call in one event.
Sourcepub fn tool_call_result(
message_id: impl Into<MessageId>,
tool_call_id: impl Into<ToolCallId>,
content: impl Into<String>,
) -> Self
pub fn tool_call_result( message_id: impl Into<MessageId>, tool_call_id: impl Into<ToolCallId>, content: impl Into<String>, ) -> Self
TOOL_CALL_RESULT — reports what a tool returned.
Sourcepub fn thinking_start(title: Option<String>) -> Self
👎Deprecated: use Event::reasoning_start
pub fn thinking_start(title: Option<String>) -> Self
use Event::reasoning_start
THINKING_START — opens a thinking block.
Sourcepub fn thinking_end() -> Self
👎Deprecated: use Event::reasoning_end
pub fn thinking_end() -> Self
use Event::reasoning_end
THINKING_END — closes a thinking block.
Sourcepub fn thinking_text_message_start() -> Self
👎Deprecated: use Event::reasoning_message_start
pub fn thinking_text_message_start() -> Self
use Event::reasoning_message_start
THINKING_TEXT_MESSAGE_START — opens a thinking message.
Sourcepub fn thinking_text_message_content(delta: impl Into<String>) -> Self
👎Deprecated: use Event::reasoning_message_content
pub fn thinking_text_message_content(delta: impl Into<String>) -> Self
use Event::reasoning_message_content
THINKING_TEXT_MESSAGE_CONTENT — appends thinking text.
Sourcepub fn thinking_text_message_end() -> Self
👎Deprecated: use Event::reasoning_message_end
pub fn thinking_text_message_end() -> Self
use Event::reasoning_message_end
THINKING_TEXT_MESSAGE_END — closes a thinking message.
Sourcepub fn state_snapshot(snapshot: impl Into<Value>) -> Self
pub fn state_snapshot(snapshot: impl Into<Value>) -> Self
STATE_SNAPSHOT — replaces the shared state.
Sourcepub fn state_delta(delta: impl Into<Vec<PatchOperation>>) -> Self
pub fn state_delta(delta: impl Into<Vec<PatchOperation>>) -> Self
STATE_DELTA — patches the shared state.
Sourcepub fn messages_snapshot(messages: impl Into<Vec<Message>>) -> Self
pub fn messages_snapshot(messages: impl Into<Vec<Message>>) -> Self
MESSAGES_SNAPSHOT — replaces the message history.
Sourcepub fn activity_snapshot(
message_id: impl Into<MessageId>,
activity_type: impl Into<String>,
content: JsonObject,
) -> Self
pub fn activity_snapshot( message_id: impl Into<MessageId>, activity_type: impl Into<String>, content: JsonObject, ) -> Self
ACTIVITY_SNAPSHOT — publishes an activity payload.
Sourcepub fn activity_delta(
message_id: impl Into<MessageId>,
activity_type: impl Into<String>,
patch: impl Into<Vec<PatchOperation>>,
) -> Self
pub fn activity_delta( message_id: impl Into<MessageId>, activity_type: impl Into<String>, patch: impl Into<Vec<PatchOperation>>, ) -> Self
ACTIVITY_DELTA — patches an activity payload.
Sourcepub fn custom(name: impl Into<String>, value: impl Into<Value>) -> Self
pub fn custom(name: impl Into<String>, value: impl Into<Value>) -> Self
CUSTOM — an application-defined event.
Sourcepub fn run_started(
thread_id: impl Into<ThreadId>,
run_id: impl Into<RunId>,
) -> Self
pub fn run_started( thread_id: impl Into<ThreadId>, run_id: impl Into<RunId>, ) -> Self
RUN_STARTED — starts a run.
Sourcepub fn run_finished(
thread_id: impl Into<ThreadId>,
run_id: impl Into<RunId>,
) -> Self
pub fn run_finished( thread_id: impl Into<ThreadId>, run_id: impl Into<RunId>, ) -> Self
RUN_FINISHED without an outcome — the legacy shape, which consumers
read as success.
Sourcepub fn run_finished_success(
thread_id: impl Into<ThreadId>,
run_id: impl Into<RunId>,
) -> Self
pub fn run_finished_success( thread_id: impl Into<ThreadId>, run_id: impl Into<RunId>, ) -> Self
RUN_FINISHED with an explicit success outcome.
Sourcepub fn run_finished_interrupt(
thread_id: impl Into<ThreadId>,
run_id: impl Into<RunId>,
interrupts: impl Into<Vec<Interrupt>>,
) -> Self
pub fn run_finished_interrupt( thread_id: impl Into<ThreadId>, run_id: impl Into<RunId>, interrupts: impl Into<Vec<Interrupt>>, ) -> Self
RUN_FINISHED with an interrupt outcome — the run is paused until the
client answers.
Sourcepub fn step_started(step_name: impl Into<StepName>) -> Self
pub fn step_started(step_name: impl Into<StepName>) -> Self
STEP_STARTED — opens a named step.
Sourcepub fn step_finished(step_name: impl Into<StepName>) -> Self
pub fn step_finished(step_name: impl Into<StepName>) -> Self
STEP_FINISHED — closes a named step.
Sourcepub fn reasoning_start(message_id: impl Into<MessageId>) -> Self
pub fn reasoning_start(message_id: impl Into<MessageId>) -> Self
REASONING_START — opens a reasoning block.
Sourcepub fn reasoning_message_start(message_id: impl Into<MessageId>) -> Self
pub fn reasoning_message_start(message_id: impl Into<MessageId>) -> Self
REASONING_MESSAGE_START — opens a reasoning message.
Sourcepub fn reasoning_message_content(
message_id: impl Into<MessageId>,
delta: impl Into<String>,
) -> Self
pub fn reasoning_message_content( message_id: impl Into<MessageId>, delta: impl Into<String>, ) -> Self
REASONING_MESSAGE_CONTENT — appends reasoning text.
Sourcepub fn reasoning_message_end(message_id: impl Into<MessageId>) -> Self
pub fn reasoning_message_end(message_id: impl Into<MessageId>) -> Self
REASONING_MESSAGE_END — closes a reasoning message.
Sourcepub fn reasoning_message_chunk(
message_id: Option<MessageId>,
delta: Option<String>,
) -> Self
pub fn reasoning_message_chunk( message_id: Option<MessageId>, delta: Option<String>, ) -> Self
REASONING_MESSAGE_CHUNK — a whole reasoning update in one event.
Sourcepub fn reasoning_end(message_id: impl Into<MessageId>) -> Self
pub fn reasoning_end(message_id: impl Into<MessageId>) -> Self
REASONING_END — closes a reasoning block.
Sourcepub fn reasoning_encrypted_value(
subtype: ReasoningEncryptedValueSubtype,
entity_id: impl Into<String>,
encrypted_value: impl Into<String>,
) -> Self
pub fn reasoning_encrypted_value( subtype: ReasoningEncryptedValueSubtype, entity_id: impl Into<String>, encrypted_value: impl Into<String>, ) -> Self
REASONING_ENCRYPTED_VALUE — carries an opaque reasoning blob.
Sourcepub fn subagent_started(
subagent_run_id: impl Into<SubagentRunId>,
name: impl Into<String>,
) -> Self
pub fn subagent_started( subagent_run_id: impl Into<SubagentRunId>, name: impl Into<String>, ) -> Self
SUBAGENT_STARTED — announces a subagent invocation.
Sourcepub fn subagent_finished(subagent_run_id: impl Into<SubagentRunId>) -> Self
pub fn subagent_finished(subagent_run_id: impl Into<SubagentRunId>) -> Self
SUBAGENT_FINISHED without an outcome — the legacy shape, which
consumers read as success.
Sourcepub fn subagent_finished_success(
subagent_run_id: impl Into<SubagentRunId>,
) -> Self
pub fn subagent_finished_success( subagent_run_id: impl Into<SubagentRunId>, ) -> Self
SUBAGENT_FINISHED with an explicit success outcome.
Sourcepub fn subagent_finished_suspended(
subagent_run_id: impl Into<SubagentRunId>,
interrupt_ids: impl Into<Vec<String>>,
) -> Self
pub fn subagent_finished_suspended( subagent_run_id: impl Into<SubagentRunId>, interrupt_ids: impl Into<Vec<String>>, ) -> Self
SUBAGENT_FINISHED with a suspended outcome — the subagent is waiting
on the named interrupts.
Sourcepub fn subagent_error(
subagent_run_id: impl Into<SubagentRunId>,
message: impl Into<String>,
) -> Self
pub fn subagent_error( subagent_run_id: impl Into<SubagentRunId>, message: impl Into<String>, ) -> Self
SUBAGENT_ERROR — fails a subagent invocation.
Source§impl Event
impl Event
Sourcepub fn with_timestamp(self, timestamp: i64) -> Self
pub fn with_timestamp(self, timestamp: i64) -> Self
Stamps the event with a millisecond Unix timestamp.
Sourcepub fn with_raw_event(self, raw_event: impl Into<Value>) -> Self
pub fn with_raw_event(self, raw_event: impl Into<Value>) -> Self
Attaches the provider event this was translated from.
Sourcepub fn with_metadata(self, metadata: JsonObject) -> Self
pub fn with_metadata(self, metadata: JsonObject) -> Self
Attaches metadata, replacing any the event already carried. See
crate::metadata.
Sourcepub const fn metadata(&self) -> Option<&JsonObject>
pub const fn metadata(&self) -> Option<&JsonObject>
The event’s metadata, if it carries any.
Sourcepub const fn is_deprecated(&self) -> bool
pub const fn is_deprecated(&self) -> bool
Whether this event’s type is deprecated in favour of a REASONING_*
one.
Sourcepub fn subagent_run_id(&self) -> Option<&SubagentRunId>
pub fn subagent_run_id(&self) -> Option<&SubagentRunId>
The subagent this event belongs to.
None means the parent agent — or an event type that carries no
attribution at all; EventType::is_attributable tells the two
apart. For the three SUBAGENT_* lifecycle events this is the
subagent they announce, which is required rather than optional.
Sourcepub fn set_subagent_run_id(&mut self, id: impl Into<SubagentRunId>) -> bool
pub fn set_subagent_run_id(&mut self, id: impl Into<SubagentRunId>) -> bool
Attributes the event to id.
Returns false, leaving the event untouched, for the nine event types
the protocol defines without the field: RUN_*, MESSAGES_SNAPSHOT
and the deprecated THINKING_* family. On a SUBAGENT_* event it sets
the subject.
Sourcepub fn clear_subagent_run_id(&mut self) -> Option<SubagentRunId>
pub fn clear_subagent_run_id(&mut self) -> Option<SubagentRunId>
Removes attribution from an attributable event and returns it.
The SUBAGENT_* events carry their id as a required subject, so this
leaves them alone and returns None, as it does for the event types
that never carry the field.
Sourcepub fn with_subagent_run_id(self, id: impl Into<SubagentRunId>) -> Self
pub fn with_subagent_run_id(self, id: impl Into<SubagentRunId>) -> Self
Builder form of set_subagent_run_id; a
no-op on the event types that cannot carry attribution.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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>,
Source§impl From<ActivityDeltaEvent> for Event
impl From<ActivityDeltaEvent> for Event
Source§fn from(payload: ActivityDeltaEvent) -> Self
fn from(payload: ActivityDeltaEvent) -> Self
Source§impl From<ActivitySnapshotEvent> for Event
impl From<ActivitySnapshotEvent> for Event
Source§fn from(payload: ActivitySnapshotEvent) -> Self
fn from(payload: ActivitySnapshotEvent) -> Self
Source§impl From<CustomEvent> for Event
impl From<CustomEvent> for Event
Source§fn from(payload: CustomEvent) -> Self
fn from(payload: CustomEvent) -> Self
Source§impl From<MessagesSnapshotEvent> for Event
impl From<MessagesSnapshotEvent> for Event
Source§fn from(payload: MessagesSnapshotEvent) -> Self
fn from(payload: MessagesSnapshotEvent) -> Self
Source§impl From<ReasoningEncryptedValueEvent> for Event
impl From<ReasoningEncryptedValueEvent> for Event
Source§fn from(payload: ReasoningEncryptedValueEvent) -> Self
fn from(payload: ReasoningEncryptedValueEvent) -> Self
Source§impl From<ReasoningEndEvent> for Event
impl From<ReasoningEndEvent> for Event
Source§fn from(payload: ReasoningEndEvent) -> Self
fn from(payload: ReasoningEndEvent) -> Self
Source§impl From<ReasoningMessageChunkEvent> for Event
impl From<ReasoningMessageChunkEvent> for Event
Source§fn from(payload: ReasoningMessageChunkEvent) -> Self
fn from(payload: ReasoningMessageChunkEvent) -> Self
Source§impl From<ReasoningMessageContentEvent> for Event
impl From<ReasoningMessageContentEvent> for Event
Source§fn from(payload: ReasoningMessageContentEvent) -> Self
fn from(payload: ReasoningMessageContentEvent) -> Self
Source§impl From<ReasoningMessageEndEvent> for Event
impl From<ReasoningMessageEndEvent> for Event
Source§fn from(payload: ReasoningMessageEndEvent) -> Self
fn from(payload: ReasoningMessageEndEvent) -> Self
Source§impl From<ReasoningMessageStartEvent> for Event
impl From<ReasoningMessageStartEvent> for Event
Source§fn from(payload: ReasoningMessageStartEvent) -> Self
fn from(payload: ReasoningMessageStartEvent) -> Self
Source§impl From<ReasoningStartEvent> for Event
impl From<ReasoningStartEvent> for Event
Source§fn from(payload: ReasoningStartEvent) -> Self
fn from(payload: ReasoningStartEvent) -> Self
Source§impl From<RunErrorEvent> for Event
impl From<RunErrorEvent> for Event
Source§fn from(payload: RunErrorEvent) -> Self
fn from(payload: RunErrorEvent) -> Self
Source§impl From<RunFinishedEvent> for Event
impl From<RunFinishedEvent> for Event
Source§fn from(payload: RunFinishedEvent) -> Self
fn from(payload: RunFinishedEvent) -> Self
Source§impl From<RunStartedEvent> for Event
impl From<RunStartedEvent> for Event
Source§fn from(payload: RunStartedEvent) -> Self
fn from(payload: RunStartedEvent) -> Self
Source§impl From<StateDeltaEvent> for Event
impl From<StateDeltaEvent> for Event
Source§fn from(payload: StateDeltaEvent) -> Self
fn from(payload: StateDeltaEvent) -> Self
Source§impl From<StateSnapshotEvent> for Event
impl From<StateSnapshotEvent> for Event
Source§fn from(payload: StateSnapshotEvent) -> Self
fn from(payload: StateSnapshotEvent) -> Self
Source§impl From<StepFinishedEvent> for Event
impl From<StepFinishedEvent> for Event
Source§fn from(payload: StepFinishedEvent) -> Self
fn from(payload: StepFinishedEvent) -> Self
Source§impl From<StepStartedEvent> for Event
impl From<StepStartedEvent> for Event
Source§fn from(payload: StepStartedEvent) -> Self
fn from(payload: StepStartedEvent) -> Self
Source§impl From<SubagentErrorEvent> for Event
impl From<SubagentErrorEvent> for Event
Source§fn from(payload: SubagentErrorEvent) -> Self
fn from(payload: SubagentErrorEvent) -> Self
Source§impl From<SubagentFinishedEvent> for Event
impl From<SubagentFinishedEvent> for Event
Source§fn from(payload: SubagentFinishedEvent) -> Self
fn from(payload: SubagentFinishedEvent) -> Self
Source§impl From<SubagentStartedEvent> for Event
impl From<SubagentStartedEvent> for Event
Source§fn from(payload: SubagentStartedEvent) -> Self
fn from(payload: SubagentStartedEvent) -> Self
Source§impl From<TextMessageChunkEvent> for Event
impl From<TextMessageChunkEvent> for Event
Source§fn from(payload: TextMessageChunkEvent) -> Self
fn from(payload: TextMessageChunkEvent) -> Self
Source§impl From<TextMessageContentEvent> for Event
impl From<TextMessageContentEvent> for Event
Source§fn from(payload: TextMessageContentEvent) -> Self
fn from(payload: TextMessageContentEvent) -> Self
Source§impl From<TextMessageEndEvent> for Event
impl From<TextMessageEndEvent> for Event
Source§fn from(payload: TextMessageEndEvent) -> Self
fn from(payload: TextMessageEndEvent) -> Self
Source§impl From<TextMessageStartEvent> for Event
impl From<TextMessageStartEvent> for Event
Source§fn from(payload: TextMessageStartEvent) -> Self
fn from(payload: TextMessageStartEvent) -> Self
Source§impl From<ThinkingEndEvent> for Event
impl From<ThinkingEndEvent> for Event
Source§fn from(payload: ThinkingEndEvent) -> Self
fn from(payload: ThinkingEndEvent) -> Self
Source§impl From<ThinkingStartEvent> for Event
impl From<ThinkingStartEvent> for Event
Source§fn from(payload: ThinkingStartEvent) -> Self
fn from(payload: ThinkingStartEvent) -> Self
Source§impl From<ThinkingTextMessageContentEvent> for Event
impl From<ThinkingTextMessageContentEvent> for Event
Source§fn from(payload: ThinkingTextMessageContentEvent) -> Self
fn from(payload: ThinkingTextMessageContentEvent) -> Self
Source§impl From<ThinkingTextMessageEndEvent> for Event
impl From<ThinkingTextMessageEndEvent> for Event
Source§fn from(payload: ThinkingTextMessageEndEvent) -> Self
fn from(payload: ThinkingTextMessageEndEvent) -> Self
Source§impl From<ThinkingTextMessageStartEvent> for Event
impl From<ThinkingTextMessageStartEvent> for Event
Source§fn from(payload: ThinkingTextMessageStartEvent) -> Self
fn from(payload: ThinkingTextMessageStartEvent) -> Self
Source§impl From<ToolCallArgsEvent> for Event
impl From<ToolCallArgsEvent> for Event
Source§fn from(payload: ToolCallArgsEvent) -> Self
fn from(payload: ToolCallArgsEvent) -> Self
Source§impl From<ToolCallChunkEvent> for Event
impl From<ToolCallChunkEvent> for Event
Source§fn from(payload: ToolCallChunkEvent) -> Self
fn from(payload: ToolCallChunkEvent) -> Self
Source§impl From<ToolCallEndEvent> for Event
impl From<ToolCallEndEvent> for Event
Source§fn from(payload: ToolCallEndEvent) -> Self
fn from(payload: ToolCallEndEvent) -> Self
Source§impl From<ToolCallResultEvent> for Event
impl From<ToolCallResultEvent> for Event
Source§fn from(payload: ToolCallResultEvent) -> Self
fn from(payload: ToolCallResultEvent) -> Self
Source§impl From<ToolCallStartEvent> for Event
impl From<ToolCallStartEvent> for Event
Source§fn from(payload: ToolCallStartEvent) -> Self
fn from(payload: ToolCallStartEvent) -> Self
Source§impl JsonSchema for Event
impl JsonSchema for Event
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more