pub enum StreamChannel {
AssistantText,
ReasoningSummary,
ProviderExposedReasoning,
ToolCallArguments,
ToolResultText,
RealtimeTranscript,
RealtimeMedia,
HiddenChainOfThought,
}Expand description
Enumerates the finite stream channel cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
AssistantText
Use this variant when the contract needs to represent assistant text; selecting it has no side effect by itself.
ReasoningSummary
Use this variant when the contract needs to represent reasoning summary; selecting it has no side effect by itself.
ProviderExposedReasoning
Use this variant when the contract needs to represent provider exposed reasoning; selecting it has no side effect by itself.
ToolCallArguments
Use this variant when the contract needs to represent tool call arguments; selecting it has no side effect by itself.
ToolResultText
Use this variant when the contract needs to represent tool result text; selecting it has no side effect by itself.
RealtimeTranscript
Use this variant when the contract needs to represent realtime transcript; selecting it has no side effect by itself.
RealtimeMedia
Use this variant when the contract needs to represent realtime media; selecting it has no side effect by itself.
HiddenChainOfThought
Use this variant when the contract needs to represent hidden chain of thought; selecting it has no side effect by itself.
Implementations§
Source§impl StreamChannel
impl StreamChannel
Sourcepub fn is_policy_visible(&self) -> bool
pub fn is_policy_visible(&self) -> bool
Reports whether this value is policy visible. The check is pure and does not mutate SDK or host state.
Sourcepub fn as_contract_name(&self) -> &'static str
pub fn as_contract_name(&self) -> &'static str
Returns this value as contract name. The accessor is side-effect free and keeps ownership with the caller.
Trait Implementations§
Source§impl Clone for StreamChannel
impl Clone for StreamChannel
Source§fn clone(&self) -> StreamChannel
fn clone(&self) -> StreamChannel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamChannel
impl Debug for StreamChannel
Source§impl<'de> Deserialize<'de> for StreamChannel
impl<'de> Deserialize<'de> for StreamChannel
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 Hash for StreamChannel
impl Hash for StreamChannel
Source§impl Ord for StreamChannel
impl Ord for StreamChannel
Source§fn cmp(&self, other: &StreamChannel) -> Ordering
fn cmp(&self, other: &StreamChannel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StreamChannel
impl PartialEq for StreamChannel
Source§fn eq(&self, other: &StreamChannel) -> bool
fn eq(&self, other: &StreamChannel) -> bool
self and other values to be equal, and is used by ==.