pub struct ListTasksRequest {
pub tenant: String,
pub context_id: String,
pub status: i32,
pub page_size: Option<i32>,
pub page_token: String,
pub history_length: Option<i32>,
pub status_timestamp_after: Option<Timestamp>,
pub include_artifacts: Option<bool>,
}Expand description
Parameters for listing tasks with optional filtering criteria.
Fields§
§tenant: StringTenant ID, provided as a path parameter.
context_id: StringFilter tasks by context ID to get tasks from a specific conversation or session.
status: i32Filter tasks by their current status state.
page_size: Option<i32>The maximum number of tasks to return. The service may return fewer than this value. If unspecified, at most 50 tasks will be returned. The minimum value is 1. The maximum value is 100.
page_token: StringA page token, received from a previous ListTasks call.
ListTasksResponse.next_page_token.
Provide this to retrieve the subsequent page.
history_length: Option<i32>The maximum number of messages to include in each task’s history.
status_timestamp_after: Option<Timestamp>Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., “2023-10-27T10:00:00Z”). Only tasks with a status timestamp time greater than or equal to this value will be returned.
include_artifacts: Option<bool>Whether to include artifacts in the returned tasks. Defaults to false to reduce payload size.
Implementations§
Source§impl ListTasksRequest
impl ListTasksRequest
Sourcepub fn status(&self) -> TaskState
pub fn status(&self) -> TaskState
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: TaskState)
pub fn set_status(&mut self, value: TaskState)
Sets status to the provided enum value.
Sourcepub fn page_size(&self) -> i32
pub fn page_size(&self) -> i32
Returns the value of page_size, or the default value if page_size is unset.
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.
Sourcepub fn include_artifacts(&self) -> bool
pub fn include_artifacts(&self) -> bool
Returns the value of include_artifacts, or the default value if include_artifacts is unset.
Trait Implementations§
Source§impl Clone for ListTasksRequest
impl Clone for ListTasksRequest
Source§impl Debug for ListTasksRequest
impl Debug for ListTasksRequest
Source§impl Default for ListTasksRequest
impl Default for ListTasksRequest
impl Eq for ListTasksRequest
Source§impl Hash for ListTasksRequest
impl Hash for ListTasksRequest
Source§impl Message for ListTasksRequest
impl Message for ListTasksRequest
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 ListTasksRequest
impl PartialEq for ListTasksRequest
impl StructuralPartialEq for ListTasksRequest
Auto Trait Implementations§
impl Freeze for ListTasksRequest
impl RefUnwindSafe for ListTasksRequest
impl Send for ListTasksRequest
impl Sync for ListTasksRequest
impl Unpin for ListTasksRequest
impl UnsafeUnpin for ListTasksRequest
impl UnwindSafe for ListTasksRequest
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> 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> 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