Struct Tool Attributes
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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.
Bitflags that modify tool-call behavior and observability.
Implementations
impl ToolAttributes
Referenced types: ToolAttributes
REMOTE
Referenced types: ToolAttributes
Marks the tool as executing out-of-process.
impl ToolAttributes
Referenced types: ToolAttributes
empty
Referenced types: ToolAttributes
Get a flags value with all bits unset.
all
Referenced types: ToolAttributes
Get a flags value with all known bits set.
bits
Referenced types: u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
from_bits
Referenced types: u32, Option, ToolAttributes
Convert from a bits value.
This method will return None if any unknown bits are set.
from_bits_truncate
Referenced types: u32, ToolAttributes
Convert from a bits value, unsetting any unknown bits.
from_bits_retain
Referenced types: u32, ToolAttributes
Convert from a bits value exactly.
from_name
Referenced types: str, Option, ToolAttributes
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t correspond to any named flag.
is_empty
Referenced types: bool
Whether all bits in this flags value are unset.
is_all
Referenced types: bool
Whether all known bits in this flags value are set.
intersects
Referenced types: ToolAttributes, bool
Whether any set bits in a source flags value are also set in a target flags value.
contains
Referenced types: ToolAttributes, bool
Whether all set bits in a source flags value are also set in a target flags value.
insert
Referenced types: ToolAttributes
The bitwise or (|) of the bits in two flags values.
remove
Referenced types: ToolAttributes
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.
toggle
Referenced types: ToolAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
set
Referenced types: ToolAttributes, bool
Call insert when value is true or remove when value is false.
intersection
Referenced types: ToolAttributes
The bitwise and (&) of the bits in two flags values.
union
Referenced types: ToolAttributes
The bitwise or (|) of the bits in two flags values.
difference
Referenced types: ToolAttributes
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.
symmetric_difference
Referenced types: ToolAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
complement
Referenced types: ToolAttributes
The bitwise negation (!) of the bits in a flags value, truncating the result.
impl ToolAttributes
Referenced types: ToolAttributes
iter
Referenced types: ToolAttributes
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
iter_names
Referenced types: ToolAttributes
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations
impl Binary for ToolAttributes
Referenced types: Binary, ToolAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl BitAnd for ToolAttributes
Referenced types: BitAnd, ToolAttributes
bitand
Referenced types: bitand, ToolAttributes
The bitwise and (&) of the bits in two flags values.
Output
Referenced types: Output, ToolAttributes
impl BitAndAssign for ToolAttributes
Referenced types: BitAndAssign, ToolAttributes
bitand_assign
Referenced types: bitand_assign, ToolAttributes
The bitwise and (&) of the bits in two flags values.
impl BitOr for ToolAttributes
Referenced types: BitOr, ToolAttributes
bitor
Referenced types: bitor, ToolAttributes
The bitwise or (|) of the bits in two flags values.
Output
Referenced types: Output, ToolAttributes
impl BitOrAssign for ToolAttributes
Referenced types: BitOrAssign, ToolAttributes
bitor_assign
Referenced types: bitor_assign, ToolAttributes
The bitwise or (|) of the bits in two flags values.
impl BitXor for ToolAttributes
Referenced types: BitXor, ToolAttributes
bitxor
Referenced types: bitxor, ToolAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
Output
Referenced types: Output, ToolAttributes
impl BitXorAssign for ToolAttributes
Referenced types: BitXorAssign, ToolAttributes
bitxor_assign
Referenced types: bitxor_assign, ToolAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
impl Clone for ToolAttributes
Referenced types: Clone, ToolAttributes
clone
Referenced types: clone, ToolAttributes
clone_from
Referenced types: clone_from
impl Debug for ToolAttributes
Referenced types: Debug, ToolAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl<'de> Deserialize<'de> for ToolAttributes
Referenced types: Deserialize, ToolAttributes
deserialize
Referenced types: deserialize, Result, ToolAttributes, Deserializer, Error
impl Extend<ToolAttributes> for ToolAttributes
Referenced types: Extend, ToolAttributes
extend
Referenced types: extend, IntoIterator, ToolAttributes
The bitwise or (|) of the bits in each flags value.
extend_one
Referenced types: extend_one
extend_reserve
Referenced types: extend_reserve, usize
impl Flags for ToolAttributes
Referenced types: ToolAttributes
FLAGS
Referenced types: ToolAttributes
Bits
Referenced types: u32
bits
Referenced types: u32
from_bits_retain
Referenced types: u32, ToolAttributes
empty
all
known_bits
unknown_bits
contains_unknown_bits
Referenced types: bool
from_bits
Referenced types: Option
from_bits_truncate
from_name
iter
iter_names
iter_defined_names
is_empty
Referenced types: bool
is_all
Referenced types: bool
intersects
contains
truncate
Referenced types: Sized
insert
Referenced types: Sized
remove
Referenced types: Sized
toggle
Referenced types: Sized
set
clear
Referenced types: Sized
intersection
union
difference
symmetric_difference
complement
impl FromIterator<ToolAttributes> for ToolAttributes
Referenced types: FromIterator, ToolAttributes
from_iter
Referenced types: from_iter, ToolAttributes, IntoIterator
The bitwise or (|) of the bits in each flags value.
impl Hash for ToolAttributes
Referenced types: Hash, ToolAttributes
hash
Referenced types: hash, &mut __H, Hasher
hash_slice
Referenced types: hash_slice, &mut H, Hasher, Sized
impl IntoIterator for ToolAttributes
Referenced types: IntoIterator, ToolAttributes
Item
Referenced types: Item, ToolAttributes
IntoIter
Referenced types: IntoIter, ToolAttributes
into_iter
Referenced types: into_iter, ToolAttributes, IntoIterator, IntoIter
impl LowerHex for ToolAttributes
Referenced types: LowerHex, ToolAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Not for ToolAttributes
Referenced types: Not, ToolAttributes
not
Referenced types: not, ToolAttributes
The bitwise negation (!) of the bits in a flags value, truncating the result.
Output
Referenced types: Output, ToolAttributes
impl Octal for ToolAttributes
Referenced types: Octal, ToolAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl PartialEq for ToolAttributes
Referenced types: PartialEq, ToolAttributes
eq
Referenced types: eq, ToolAttributes, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for ToolAttributes
Referenced types: Serialize, ToolAttributes
serialize
Referenced types: serialize, Result, Serializer, Ok, Error
impl Sub for ToolAttributes
Referenced types: Sub, ToolAttributes
sub
Referenced types: sub, ToolAttributes
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.
Output
Referenced types: Output, ToolAttributes
impl SubAssign for ToolAttributes
Referenced types: SubAssign, ToolAttributes
sub_assign
Referenced types: sub_assign, ToolAttributes
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.
impl UpperHex for ToolAttributes
Referenced types: UpperHex, ToolAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Copy for ToolAttributes
Referenced types: Copy, ToolAttributes
impl Eq for ToolAttributes
Referenced types: Eq, ToolAttributes
impl StructuralPartialEq for ToolAttributes
Referenced types: StructuralPartialEq, ToolAttributes