pub struct Call {
pub project: Option<PathBuf>,
/* private fields */
}Fields§
§project: Option<PathBuf>Implementations§
Source§impl Call
impl Call
pub fn parse( name: &str, arguments: Map<String, Value>, as_of: OffsetDateTime, ) -> Result<Self, ArgumentsError>
Source§impl Call
impl Call
Sourcepub async fn execute<F: Future<Output = Result<(), String>>>(
self,
context: &Context,
cancel: CancellationToken,
progress: impl FnMut(RunEvent) -> F,
) -> Result<Output, Error>
pub async fn execute<F: Future<Output = Result<(), String>>>( self, context: &Context, cancel: CancellationToken, progress: impl FnMut(RunEvent) -> F, ) -> Result<Output, Error>
Execute the same operation in an MCP transport or an in-process Chat session. Transports resolve their own scope before invoking this; a Chat scopes it to one worktree.
Sourcepub fn started_run(&self) -> bool
pub fn started_run(&self) -> bool
Whether success reports the identity of the Run this tool started, not an inspected Run.
Auto Trait Implementations§
impl Forget for Call
impl Freeze for Call
impl Move for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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