pub struct SendMessageConfiguration {
pub accepted_output_modes: Vec<String>,
pub task_push_notification_config: Option<TaskPushNotificationConfig>,
pub history_length: Option<i32>,
pub return_immediately: bool,
}Expand description
Configuration of a send message request.
Fields§
§accepted_output_modes: Vec<String>A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output.
task_push_notification_config: Option<TaskPushNotificationConfig>Configuration for the agent to send push notifications for task updates.
Task id should be empty when sending this configuration in a SendMessage request.
history_length: Option<i32>The maximum number of most recent messages from the task’s history to retrieve in the response. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit.
return_immediately: boolIf true, the operation returns immediately after creating the task,
even if processing is still in progress.
If false (default), the operation MUST wait until the task reaches a
terminal (COMPLETED, FAILED, CANCELED, REJECTED) or interrupted
(INPUT_REQUIRED, AUTH_REQUIRED) state before returning.
Implementations§
Source§impl SendMessageConfiguration
impl SendMessageConfiguration
Sourcepub fn history_length(&self) -> i32
pub fn history_length(&self) -> i32
Returns the value of history_length, or the default value if history_length is unset.
Trait Implementations§
Source§impl Clone for SendMessageConfiguration
impl Clone for SendMessageConfiguration
Source§fn clone(&self) -> SendMessageConfiguration
fn clone(&self) -> SendMessageConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SendMessageConfiguration
impl Debug for SendMessageConfiguration
Source§impl Default for SendMessageConfiguration
impl Default for SendMessageConfiguration
§impl<'de> Deserialize<'de> for SendMessageConfiguration
impl<'de> Deserialize<'de> for SendMessageConfiguration
§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 SendMessageConfiguration
impl Hash for SendMessageConfiguration
Source§impl Message for SendMessageConfiguration
impl Message for SendMessageConfiguration
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.