pub struct RemoteToolGrant {Show 16 fields
pub protocol_version: u32,
pub id: Option<String>,
pub name: String,
pub description: String,
pub input_schema: Value,
pub output_schema: Value,
pub input_schema_projections: Vec<RemoteSchemaProjectionOverride>,
pub output_schema_projections: Vec<RemoteSchemaProjectionOverride>,
pub output_contract: RemoteToolOutputContract,
pub examples: Vec<String>,
pub availability: Option<RemoteToolAvailability>,
pub activation: Option<RemoteToolActivation>,
pub argument_projection: Option<RemoteToolArgumentProjectionPolicy>,
pub scheduling: Option<RemoteToolScheduling>,
pub retry_policy: Option<RemoteToolRetryPolicy>,
pub agent_surface: Option<RemoteToolAgentSurface>,
}Fields§
§protocol_version: u32§id: Option<String>§name: String§description: String§input_schema: Value§output_schema: Value§input_schema_projections: Vec<RemoteSchemaProjectionOverride>§output_schema_projections: Vec<RemoteSchemaProjectionOverride>§output_contract: RemoteToolOutputContract§examples: Vec<String>§availability: Option<RemoteToolAvailability>§activation: Option<RemoteToolActivation>§argument_projection: Option<RemoteToolArgumentProjectionPolicy>§scheduling: Option<RemoteToolScheduling>§retry_policy: Option<RemoteToolRetryPolicy>§agent_surface: Option<RemoteToolAgentSurface>Implementations§
Source§impl RemoteToolGrant
impl RemoteToolGrant
pub fn call_path(&self) -> Result<String, RemoteProtocolError>
pub fn validate(&self) -> Result<(), RemoteProtocolError>
pub fn validate_all(grants: &[Self]) -> Result<(), RemoteProtocolError>
Trait Implementations§
Source§impl Clone for RemoteToolGrant
impl Clone for RemoteToolGrant
Source§fn clone(&self) -> RemoteToolGrant
fn clone(&self) -> RemoteToolGrant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteToolGrant
impl Debug for RemoteToolGrant
Source§impl<'de> Deserialize<'de> for RemoteToolGrant
impl<'de> Deserialize<'de> for RemoteToolGrant
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
Source§impl JsonSchema for RemoteToolGrant
impl JsonSchema for RemoteToolGrant
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RemoteToolGrant
impl PartialEq for RemoteToolGrant
Source§fn eq(&self, other: &RemoteToolGrant) -> bool
fn eq(&self, other: &RemoteToolGrant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemoteToolGrant
impl Serialize for RemoteToolGrant
impl StructuralPartialEq for RemoteToolGrant
Auto Trait Implementations§
impl Freeze for RemoteToolGrant
impl RefUnwindSafe for RemoteToolGrant
impl Send for RemoteToolGrant
impl Sync for RemoteToolGrant
impl Unpin for RemoteToolGrant
impl UnsafeUnpin for RemoteToolGrant
impl UnwindSafe for RemoteToolGrant
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