Struct Tool Class
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct ToolClass {
pub cacheable: bool,
pub ttl_seconds: Option<u64>,
pub bypass_rate: Option<f64>,
pub tool_version: Option<String>,
pub arg_skip: Vec<String>,
pub members: Vec<String>,
}
Policy shared by a class of tools.
Fields
cacheable: bool
Whether class members may be served from cache.
ttl_seconds: Option<u64>
TTL in seconds; inherits the response-cache TTL when unset.
bypass_rate: Option<f64>
Live-rerun probability; inherits the response-cache rate when unset.
tool_version: Option<String>
Version string folded into cache keys for members of this class.
arg_skip: Vec<String>
Top-level argument keys dropped before keying.
members: Vec<String>
Exact tool names, prefix*, *suffix, or *contains* patterns in this class.
Trait Implementations
impl Clone for ToolClass
impl Clone for ToolClass
clone
fn clone(&self) -> ToolClass
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ToolClass
impl Debug for ToolClass
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ToolClass
impl Default for ToolClass
default
fn default() -> ToolClass
impl<'de> Deserialize<'de> for ToolClasswhere ToolClass: Default,
impl<'de> Deserialize<'de> for ToolClasswhere
ToolClass: Default,
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl EditorConfig for ToolClass
impl EditorConfig for ToolClass
editor_schema
fn editor_schema() -> &'static EditorSchema
impl Serialize for ToolClass
impl Serialize for ToolClass
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,