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 (const: unstable) · 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
Source§fn default() -> SendMessageConfiguration
fn default() -> SendMessageConfiguration
impl Eq for SendMessageConfiguration
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.Source§impl PartialEq for SendMessageConfiguration
impl PartialEq for SendMessageConfiguration
impl StructuralPartialEq for SendMessageConfiguration
Source§impl TryFrom<SendMessageConfiguration> for SendMessageConfiguration
impl TryFrom<SendMessageConfiguration> for SendMessageConfiguration
Source§type Error = ConvertError
type Error = ConvertError
Source§fn try_from(
value: SendMessageConfiguration,
) -> Result<SendMessageConfiguration, <SendMessageConfiguration as TryFrom<SendMessageConfiguration>>::Error>
fn try_from( value: SendMessageConfiguration, ) -> Result<SendMessageConfiguration, <SendMessageConfiguration as TryFrom<SendMessageConfiguration>>::Error>
Source§impl TryFrom<SendMessageConfiguration> for SendMessageConfiguration
impl TryFrom<SendMessageConfiguration> for SendMessageConfiguration
Source§type Error = ConvertError
type Error = ConvertError
Source§fn try_from(
value: SendMessageConfiguration,
) -> Result<SendMessageConfiguration, <SendMessageConfiguration as TryFrom<SendMessageConfiguration>>::Error>
fn try_from( value: SendMessageConfiguration, ) -> Result<SendMessageConfiguration, <SendMessageConfiguration as TryFrom<SendMessageConfiguration>>::Error>
Auto Trait Implementations§
impl Freeze for SendMessageConfiguration
impl RefUnwindSafe for SendMessageConfiguration
impl Send for SendMessageConfiguration
impl Sync for SendMessageConfiguration
impl Unpin for SendMessageConfiguration
impl UnsafeUnpin for SendMessageConfiguration
impl UnwindSafe for SendMessageConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request