pub struct ListCommandsTool { /* private fields */ }Expand description
Tool for listing available OpenCode commands that can be executed.
Implementations§
Source§impl ListCommandsTool
impl ListCommandsTool
Sourcepub fn new(server: Arc<OnceCell<OrchestratorServer>>) -> Self
pub fn new(server: Arc<OnceCell<OrchestratorServer>>) -> Self
Create a new ListCommandsTool with the given server cell.
Trait Implementations§
Source§impl Clone for ListCommandsTool
impl Clone for ListCommandsTool
Source§fn clone(&self) -> ListCommandsTool
fn clone(&self) -> ListCommandsTool
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 ListCommandsTool
impl Tool for ListCommandsTool
Source§const DESCRIPTION: &'static str = "List available OpenCode commands that can be used with run."
const DESCRIPTION: &'static str = "List available OpenCode commands that can be used with run."
Human-readable description of what the tool does.
Source§type Input = ListCommandsInput
type Input = ListCommandsInput
Input type for the tool (no serde bounds required).
Source§type Output = ListCommandsOutput
type Output = ListCommandsOutput
Output type for the tool (no serde bounds required).
Auto Trait Implementations§
impl Freeze for ListCommandsTool
impl !RefUnwindSafe for ListCommandsTool
impl Send for ListCommandsTool
impl Sync for ListCommandsTool
impl Unpin for ListCommandsTool
impl UnsafeUnpin for ListCommandsTool
impl !UnwindSafe for ListCommandsTool
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