pub struct ToolProxyParams {
pub endpoint: String,
pub method: Option<String>,
pub headers: Option<Value>,
pub body: Option<Value>,
pub query_params: Option<Value>,
}Expand description
Parameters for executing a proxy request
Proxy requests allow you to make authenticated API calls to external services without predefined tool schemas.
§Example
use composio_sdk::models::ToolProxyParams;
use serde_json::json;
let params = ToolProxyParams {
endpoint: "/repos/owner/repo/issues".to_string(),
method: Some("POST".to_string()),
headers: Some(json!({"Accept": "application/vnd.github.v3+json"})),
body: Some(json!({"title": "Bug report", "body": "Description"})),
query_params: None,
};Fields§
§endpoint: StringAPI endpoint (relative or absolute URL)
method: Option<String>HTTP method (GET, POST, PUT, DELETE, PATCH, etc.)
headers: Option<Value>Custom headers
body: Option<Value>Request body
query_params: Option<Value>Query parameters
Trait Implementations§
Source§impl Clone for ToolProxyParams
impl Clone for ToolProxyParams
Source§fn clone(&self) -> ToolProxyParams
fn clone(&self) -> ToolProxyParams
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 ToolProxyParams
impl Debug for ToolProxyParams
Auto Trait Implementations§
impl Freeze for ToolProxyParams
impl RefUnwindSafe for ToolProxyParams
impl Send for ToolProxyParams
impl Sync for ToolProxyParams
impl Unpin for ToolProxyParams
impl UnsafeUnpin for ToolProxyParams
impl UnwindSafe for ToolProxyParams
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