pub enum ClientEvent {
SessionUpdate {
session: Value,
},
AudioDelta {
event_id: Option<String>,
audio: Vec<u8>,
format: Option<AudioFormat>,
},
InputAudioBufferCommit,
InputAudioBufferClear,
ConversationItemCreate {
item: Value,
},
ResponseCreate {
config: Option<Value>,
},
ResponseCancel,
Message {
role: String,
parts: Vec<Part>,
},
UpdateSession {
instructions: Option<String>,
tools: Option<Vec<ToolDefinition>>,
},
}realtime only.Expand description
Events sent from the client to the realtime server.
Variants§
SessionUpdate
Update session configuration.
AudioDelta
Append audio to the input buffer.
Fields
format: Option<AudioFormat>Audio format metadata for multi-format pipelines and debugging. Skipped during serialization — the server infers format from the session config.
InputAudioBufferCommit
Commit the current audio buffer (manual mode).
InputAudioBufferClear
Clear the audio input buffer.
ConversationItemCreate
Send a text message or tool response.
ResponseCreate
Trigger a response from the model.
ResponseCancel
Cancel/interrupt the current response.
Message
A standard message using adk_core’s native Role and Part types.
UpdateSession
Universal intent to update session configuration mid-flight.
This is treated as a runner/control-plane internal intent and should not be sent directly to providers without interception. By construction, it is explicitly untagged from serialization to guarantee it cannot leak onto the WebSocket wire.
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§fn clone(&self) -> ClientEvent
fn clone(&self) -> ClientEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more