pub struct RespondPermissionTool { /* private fields */ }Expand description
Tool for responding to permission requests from OpenCode sessions.
After sending the reply, continues monitoring the session and returns when the session completes or another permission is requested.
Implementations§
Source§impl RespondPermissionTool
impl RespondPermissionTool
Sourcepub fn new(server: Arc<OnceCell<OrchestratorServer>>) -> Self
pub fn new(server: Arc<OnceCell<OrchestratorServer>>) -> Self
Create a new RespondPermissionTool with the given server cell.
Trait Implementations§
Source§impl Clone for RespondPermissionTool
impl Clone for RespondPermissionTool
Source§fn clone(&self) -> RespondPermissionTool
fn clone(&self) -> RespondPermissionTool
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 RespondPermissionTool
impl Tool for RespondPermissionTool
Source§const DESCRIPTION: &'static str = r#"Respond to a permission request from an OpenCode session.
After responding, continues monitoring the session and returns when complete or when another permission is required.
Parameters:
- session_id: Session with pending permission
- reply: "once" (allow this request), "always" (allow for matching patterns), or "reject" (deny)
- message: Optional message to include with reply"#
const DESCRIPTION: &'static str = r#"Respond to a permission request from an OpenCode session. After responding, continues monitoring the session and returns when complete or when another permission is required. Parameters: - session_id: Session with pending permission - reply: "once" (allow this request), "always" (allow for matching patterns), or "reject" (deny) - message: Optional message to include with reply"#
Human-readable description of what the tool does.
Source§type Input = RespondPermissionInput
type Input = RespondPermissionInput
Input type for the tool (no serde bounds required).
Source§type Output = OrchestratorRunOutput
type Output = OrchestratorRunOutput
Output type for the tool (no serde bounds required).
Auto Trait Implementations§
impl Freeze for RespondPermissionTool
impl !RefUnwindSafe for RespondPermissionTool
impl Send for RespondPermissionTool
impl Sync for RespondPermissionTool
impl Unpin for RespondPermissionTool
impl UnsafeUnpin for RespondPermissionTool
impl !UnwindSafe for RespondPermissionTool
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