pub struct ToolExecutionRequest {
pub tool_slug: String,
pub arguments: Option<Value>,
pub connected_account_id: Option<String>,
pub custom_auth_params: Option<Value>,
pub custom_connection_data: Option<Value>,
pub user_id: Option<String>,
pub text: Option<String>,
pub version: Option<String>,
pub dangerously_skip_version_check: Option<bool>,
}Expand description
Request to execute a tool
This struct contains all parameters needed to execute a tool through the Composio API. It supports various authentication methods and execution modes.
§Fields
tool_slug- The slug of the tool to execute (required)arguments- Arguments to pass to the tool (optional)connected_account_id- ID of the connected account to use for authentication (optional)custom_auth_params- Custom authentication parameters (optional)custom_connection_data- Custom connection data, takes priority over custom_auth_params (optional)user_id- User ID to execute the tool for (optional)text- Natural language text to pass to the tool (optional, mutually exclusive with arguments)version- Version of the tool to execute (optional, overrides SDK-level toolkit versions)dangerously_skip_version_check- Skip version check for ‘latest’ version (optional, dangerous!)
§Example
use composio_sdk::models::ToolExecutionRequest;
use serde_json::json;
let request = ToolExecutionRequest {
tool_slug: "GITHUB_CREATE_ISSUE".to_string(),
arguments: Some(json!({
"owner": "composio",
"repo": "composio",
"title": "Test issue"
})),
user_id: Some("user_123".to_string()),
..Default::default()
};Fields§
§tool_slug: StringTool slug to execute
arguments: Option<Value>Arguments to pass to the tool (mutually exclusive with text)
connected_account_id: Option<String>Connected account ID to use for authentication
custom_auth_params: Option<Value>Custom authentication parameters
custom_connection_data: Option<Value>Custom connection data (takes priority over custom_auth_params)
user_id: Option<String>User ID to execute the tool for
text: Option<String>Natural language text to pass to the tool (mutually exclusive with arguments)
version: Option<String>Version of the tool to execute (overrides SDK-level toolkit versions)
dangerously_skip_version_check: Option<bool>Skip version check for ‘latest’ version (dangerous - may cause unexpected behavior)
Trait Implementations§
Source§impl Clone for ToolExecutionRequest
impl Clone for ToolExecutionRequest
Source§fn clone(&self) -> ToolExecutionRequest
fn clone(&self) -> ToolExecutionRequest
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 ToolExecutionRequest
impl Debug for ToolExecutionRequest
Source§impl Default for ToolExecutionRequest
impl Default for ToolExecutionRequest
Source§fn default() -> ToolExecutionRequest
fn default() -> ToolExecutionRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolExecutionRequest
impl RefUnwindSafe for ToolExecutionRequest
impl Send for ToolExecutionRequest
impl Sync for ToolExecutionRequest
impl Unpin for ToolExecutionRequest
impl UnsafeUnpin for ToolExecutionRequest
impl UnwindSafe for ToolExecutionRequest
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