#[non_exhaustive]pub enum OpenEntity {
#[non_exhaustive] Message {
start: TextMessageStartEvent,
content: String,
chunked: bool,
},
#[non_exhaustive] ToolCall {
start: ToolCallStartEvent,
args: String,
chunked: bool,
},
#[non_exhaustive] ReasoningBlock {
start: ReasoningStartEvent,
},
#[non_exhaustive] ReasoningMessage {
start: ReasoningMessageStartEvent,
content: String,
chunked: bool,
},
#[non_exhaustive] Step {
start: StepStartedEvent,
},
#[non_exhaustive] Subagent {
start: SubagentStartedEvent,
},
}server only.Expand description
Something a run has opened and not closed.
start is the event that opened it, without its rawEvent, and with the
metadata of the content events since merged into its own: what a client
that read them holds on the entity.
Where there is a chunked flag, it says the entity was opened by a
*_CHUNK event. Its start is then the start that chunk stood for, and
the entity has no end event to wait for: it ends when its chunk stream
does. An explicit content or end event naming it would be rejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
#[non_exhaustive]Message
A text message: TEXT_MESSAGE_START with no TEXT_MESSAGE_END yet.
Fields
This variant is marked as non-exhaustive
start: TextMessageStartEventThe event that opened it.
#[non_exhaustive]ToolCall
A tool call whose arguments are streaming: TOOL_CALL_START with no
TOOL_CALL_END yet. A call that has ended and waits for its result
is not open.
Fields
This variant is marked as non-exhaustive
start: ToolCallStartEventThe event that opened it.
#[non_exhaustive]ReasoningBlock
A reasoning block: REASONING_START with no REASONING_END yet. The
message inside it is a separate entry, open or not on its own.
Fields
This variant is marked as non-exhaustive
start: ReasoningStartEventThe event that opened it.
#[non_exhaustive]ReasoningMessage
A reasoning message: REASONING_MESSAGE_START with no
REASONING_MESSAGE_END yet.
Fields
This variant is marked as non-exhaustive
start: ReasoningMessageStartEventThe event that opened it.
#[non_exhaustive]Step
A step: STEP_STARTED with no STEP_FINISHED yet.
Fields
This variant is marked as non-exhaustive
start: StepStartedEventThe event that opened it.
#[non_exhaustive]Subagent
An active subagent: SUBAGENT_STARTED with neither
SUBAGENT_FINISHED nor SUBAGENT_ERROR yet.
Fields
This variant is marked as non-exhaustive
start: SubagentStartedEventThe event that announced it.