pub struct StreamingInputSupport {
pub supported: bool,
pub native: bool,
pub semantics: Option<String>,
}Expand description
Streaming input support with mid-turn injection semantics.
Describes what happens when StreamingSession::send_user_message is called
while the agent is already producing a response on the current turn.
Fields§
§supported: bool§native: bool§semantics: Option<String>Mid-turn semantics when send_user_message is called while the agent
is already producing a response. One of:
"queue"— message is buffered and delivered at the next turn boundary (the current turn runs to completion before the new message is processed)."interrupt"— message cancels the current turn and starts a new one with the new input."between-turns-only"— calling mid-turn is an error or no-op; callers must wait for the current turn to finish before sending.
Absent when supported == false.
Implementations§
Source§impl StreamingInputSupport
impl StreamingInputSupport
Sourcepub fn queue() -> Self
pub fn queue() -> Self
Mid-turn messages are queued and delivered at the next turn boundary. The currently running turn is not interrupted.
Sourcepub fn between_turns_only() -> Self
pub fn between_turns_only() -> Self
Messages may only be sent between turns; mid-turn sends are an error.
Sourcepub fn unsupported() -> Self
pub fn unsupported() -> Self
The provider does not support streaming input at all.
Trait Implementations§
Source§impl Clone for StreamingInputSupport
impl Clone for StreamingInputSupport
Source§fn clone(&self) -> StreamingInputSupport
fn clone(&self) -> StreamingInputSupport
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamingInputSupport
impl Debug for StreamingInputSupport
Source§impl<'de> Deserialize<'de> for StreamingInputSupport
impl<'de> Deserialize<'de> for StreamingInputSupport
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
Auto Trait Implementations§
impl Freeze for StreamingInputSupport
impl RefUnwindSafe for StreamingInputSupport
impl Send for StreamingInputSupport
impl Sync for StreamingInputSupport
impl Unpin for StreamingInputSupport
impl UnsafeUnpin for StreamingInputSupport
impl UnwindSafe for StreamingInputSupport
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