#[non_exhaustive]pub struct ListSessionsRequest {
pub cwd: Option<PathBuf>,
pub cursor: Option<String>,
pub meta: Option<Meta>,
}Expand description
Request parameters for listing existing sessions.
Only available if the Agent supports the sessionCapabilities.list capability.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cwd: Option<PathBuf>Filter sessions by working directory. Must be an absolute path.
cursor: Option<String>Opaque cursor token from a previous response’s nextCursor field for cursor-based pagination
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ListSessionsRequest
impl ListSessionsRequest
pub fn new() -> Self
Sourcepub fn cwd(self, cwd: impl IntoOption<PathBuf>) -> Self
pub fn cwd(self, cwd: impl IntoOption<PathBuf>) -> Self
Filter sessions by working directory. Must be an absolute path.
Sourcepub fn cursor(self, cursor: impl IntoOption<String>) -> Self
pub fn cursor(self, cursor: impl IntoOption<String>) -> Self
Opaque cursor token from a previous response’s nextCursor field for cursor-based pagination
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ListSessionsRequest
impl Clone for ListSessionsRequest
Source§fn clone(&self) -> ListSessionsRequest
fn clone(&self) -> ListSessionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListSessionsRequest
impl Debug for ListSessionsRequest
Source§impl Default for ListSessionsRequest
impl Default for ListSessionsRequest
Source§fn default() -> ListSessionsRequest
fn default() -> ListSessionsRequest
Source§impl<'de> Deserialize<'de> for ListSessionsRequest
impl<'de> Deserialize<'de> for ListSessionsRequest
Source§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 JsonSchema for ListSessionsRequest
impl JsonSchema for ListSessionsRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more