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§fn clone(&self) -> ListTasksRequest
fn clone(&self) -> ListTasksRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListTasksRequest
impl Debug for ListTasksRequest
Source§impl Default for ListTasksRequest
impl Default for ListTasksRequest
§impl<'de> Deserialize<'de> for ListTasksRequest
impl<'de> Deserialize<'de> for ListTasksRequest
§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 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.