Skip to main content

ListSessionsArgs

Struct ListSessionsArgs 

Source
pub struct ListSessionsArgs {
    pub limit: Option<usize>,
    pub cursor: Option<String>,
    pub provider: Option<Provider>,
    pub project_root: Option<String>,
    pub project_hash: Option<String>,
    pub since: Option<String>,
    pub until: Option<String>,
    pub include_children: Option<bool>,
}
Expand description

List recent AI agent sessions with cursor-based pagination.

Fields§

§limit: Option<usize>

Maximum number of sessions to return (default: 10, max: 50)

§cursor: Option<String>

Pagination cursor from previous response’s next_cursor field. Omit for first page.

§provider: Option<Provider>

Filter by provider

§project_root: Option<String>

Filter by project root path (e.g., “/Users/me/projects/my-app”). Prefer this over project_hash when the agent knows the current working directory. Server will automatically resolve this to the correct project hash.

§project_hash: Option<String>

Filter by project hash (internal ID). Use only when you have the exact hash; prefer project_root for ergonomic filtering.

§since: Option<String>

Show sessions after this timestamp (ISO 8601)

§until: Option<String>

Show sessions before this timestamp (ISO 8601)

§include_children: Option<bool>

Include child sessions (subagents) in the list. By default, only top-level sessions are shown.

Trait Implementations§

Source§

impl Debug for ListSessionsArgs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ListSessionsArgs

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for ListSessionsArgs

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for ListSessionsArgs

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,