pub struct ListSessionsTool { /* private fields */ }Expand description
Tool for listing available OpenCode sessions in the current directory.
Implementations§
Source§impl ListSessionsTool
impl ListSessionsTool
Sourcepub fn new(server: Arc<OnceCell<OrchestratorServer>>) -> Self
pub fn new(server: Arc<OnceCell<OrchestratorServer>>) -> Self
Create a new ListSessionsTool with the given server cell.
Trait Implementations§
Source§impl Clone for ListSessionsTool
impl Clone for ListSessionsTool
Source§fn clone(&self) -> ListSessionsTool
fn clone(&self) -> ListSessionsTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Tool for ListSessionsTool
impl Tool for ListSessionsTool
Source§const DESCRIPTION: &'static str = "List available OpenCode sessions in the current directory context."
const DESCRIPTION: &'static str = "List available OpenCode sessions in the current directory context."
Human-readable description of what the tool does.
Source§type Input = ListSessionsInput
type Input = ListSessionsInput
Input type for the tool (no serde bounds required).
Source§type Output = ListSessionsOutput
type Output = ListSessionsOutput
Output type for the tool (no serde bounds required).
Auto Trait Implementations§
impl Freeze for ListSessionsTool
impl !RefUnwindSafe for ListSessionsTool
impl Send for ListSessionsTool
impl Sync for ListSessionsTool
impl Unpin for ListSessionsTool
impl UnsafeUnpin for ListSessionsTool
impl !UnwindSafe for ListSessionsTool
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
Mutably borrows from an owned value. Read more