pub struct ToolCallReq {
pub tool_call_id: String,
pub name: String,
pub arguments: Value,
pub cwd: Option<String>,
pub session_id: Option<String>,
pub project_name: Option<String>,
}Expand description
A tool call dispatch from the server to the plugin.
Fields§
§tool_call_id: StringUnique id for this tool call (used to correlate cancel/output_delta).
name: StringTool name (must match a name from the plugin’s registration).
arguments: ValueJSON-encoded arguments.
cwd: Option<String>Working directory for tool execution.
session_id: Option<String>Session id this tool call belongs to.
project_name: Option<String>Project name for this session.
Trait Implementations§
Source§impl Clone for ToolCallReq
impl Clone for ToolCallReq
Source§fn clone(&self) -> ToolCallReq
fn clone(&self) -> ToolCallReq
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 Debug for ToolCallReq
impl Debug for ToolCallReq
Source§impl<'de> Deserialize<'de> for ToolCallReq
impl<'de> Deserialize<'de> for ToolCallReq
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolCallReq
impl RefUnwindSafe for ToolCallReq
impl Send for ToolCallReq
impl Sync for ToolCallReq
impl Unpin for ToolCallReq
impl UnsafeUnpin for ToolCallReq
impl UnwindSafe for ToolCallReq
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