Struct Tool Choice Function
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.
pub struct ToolChoiceFunction {
pub choice_type: String,
pub function: ToolChoiceFunctionName,
}
A specific tool choice that forces a named function.
Fields
choice_type: String
The type (typically "function").
function: ToolChoiceFunctionName
The function to call.
Trait Implementations
impl Clone for ToolChoiceFunction
impl Clone for ToolChoiceFunction
clone
fn clone(&self) -> ToolChoiceFunction
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ToolChoiceFunction
impl Debug for ToolChoiceFunction
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<'de> Deserialize<'de> for ToolChoiceFunction
impl<'de> Deserialize<'de> for ToolChoiceFunction
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolChoiceFunction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl PartialEq for ToolChoiceFunction
impl PartialEq for ToolChoiceFunction
eq
fn eq(&self, other: &ToolChoiceFunction) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ToolChoiceFunction
impl Serialize for ToolChoiceFunction
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl WireValue<Box<ToolChoiceFunction>> for ToolChoiceFunction
impl WireValue<Box<ToolChoiceFunction>> for ToolChoiceFunction
to_wire
fn to_wire(self) -> Result<Box<ToolChoiceFunction>, ConversionError>
from_wire
fn from_wire(
value: Box<ToolChoiceFunction>,
) -> Result<ToolChoiceFunction, ConversionError>
impl WireValue<ToolChoiceFunction> for ToolChoiceFunction
impl WireValue<ToolChoiceFunction> for ToolChoiceFunction
to_wire
fn to_wire(self) -> Result<ToolChoiceFunction, ConversionError>
from_wire
fn from_wire(
value: ToolChoiceFunction,
) -> Result<ToolChoiceFunction, ConversionError>
impl StructuralPartialEq for ToolChoiceFunction
impl StructuralPartialEq for ToolChoiceFunction