CompiledToolConfig

Struct CompiledToolConfig 

Source
pub struct CompiledToolConfig {
Show 25 fields pub id: String, pub kind: CompiledToolKind, pub cmd: Option<String>, pub prompt_md: Option<String>, pub contract: Option<String>, pub compiled_schema: Option<Value>, pub result_format: Option<String>, pub timeout_ms: Option<i32>, pub allow_network: Option<bool>, pub allow_fs: Option<bool>, pub allow_subprocess: Option<bool>, pub credential_delivery: Option<CompiledCredentialDelivery>, pub oauth_providers: Option<Vec<String>>, pub oauth_required_scopes: Option<HashMap<String, Vec<String>>>, pub allowed_commands: Option<Vec<String>>, pub blocked_commands: Option<Vec<String>>, pub requires_challenge: Option<bool>, pub allowed_domains: Option<Vec<String>>, pub blocked_domains: Option<Vec<String>>, pub max_navigations: Option<i32>, pub max_duration_ms: Option<i32>, pub use_vision: Option<bool>, pub composio_toolkit: Option<String>, pub composio_actions: Option<Vec<String>>, pub is_composio_gateway: Option<bool>,
}
Expand description

Compiled tool definition.

Fields§

§id: String

Fully-qualified tool id (e.g., “tools.prompts.search”)

§kind: CompiledToolKind§cmd: Option<String>§prompt_md: Option<String>§contract: Option<String>

Path to contract JSON Schema file (original reference).

§compiled_schema: Option<Value>

Compiled JSON Schema for runtime input validation. Populated during pack compilation if contract is specified.

§result_format: Option<String>§timeout_ms: Option<i32>§allow_network: Option<bool>§allow_fs: Option<bool>§allow_subprocess: Option<bool>§credential_delivery: Option<CompiledCredentialDelivery>

How OAuth credentials should be delivered to subprocess tools.

§oauth_providers: Option<Vec<String>>

OAuth providers whose tokens are injected server-side at execution time.

§oauth_required_scopes: Option<HashMap<String, Vec<String>>>

Required scopes per OAuth provider.

§allowed_commands: Option<Vec<String>>

Allowed commands whitelist for Bash tools (empty = all allowed).

§blocked_commands: Option<Vec<String>>

Blocked commands blacklist for Bash tools.

§requires_challenge: Option<bool>

If true, tool execution requires challenge-response authentication. The caller must first receive a nonce, sign it, and submit the proof.

§allowed_domains: Option<Vec<String>>

Browser tool: allowed domain patterns (glob). Empty = all allowed.

§blocked_domains: Option<Vec<String>>

Browser tool: blocked domain patterns (glob).

§max_navigations: Option<i32>

Browser tool: maximum navigations per session.

§max_duration_ms: Option<i32>

Browser tool: maximum session duration in milliseconds.

§use_vision: Option<bool>

Browser tool: use vision (screenshots) instead of accessibility tree.

§composio_toolkit: Option<String>

Composio tool: toolkit name (e.g. “GMAIL”, “SLACK”, “GITHUB”).

§composio_actions: Option<Vec<String>>

Composio tool: action names to expose.

§is_composio_gateway: Option<bool>

Composio Gateway: true if this is the gateway meta-tool.

Trait Implementations§

Source§

impl Clone for CompiledToolConfig

Source§

fn clone(&self) -> CompiledToolConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CompiledToolConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CompiledToolConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CompiledToolConfig

Source§

fn eq(&self, other: &CompiledToolConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CompiledToolConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CompiledToolConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,