pub enum RequestToolChoiceParam {
ToolSearch,
AllowedTools(ToolChoiceAllowed),
Function(ToolChoiceFunction),
Mcp(ToolChoiceMCP),
Custom(ToolChoiceCustom),
ProgrammaticToolCalling,
ApplyPatch,
Shell,
BuiltIn(ToolChoiceTypes),
Option(ToolChoiceOptions),
}Expand description
Request tool choice extends the pinned SDK with explicit client search selection. Other variants retain the upstream representation. Owning the request type preserves fields the pinned SDK cannot round-trip.
Variants§
ToolSearch
AllowedTools(ToolChoiceAllowed)
Function(ToolChoiceFunction)
Mcp(ToolChoiceMCP)
Custom(ToolChoiceCustom)
ProgrammaticToolCalling
ApplyPatch
Shell
BuiltIn(ToolChoiceTypes)
Option(ToolChoiceOptions)
Implementations§
Source§impl RequestToolChoiceParam
impl RequestToolChoiceParam
Sourcepub fn sdk_response_choice(&self) -> ToolChoiceParam
pub fn sdk_response_choice(&self) -> ToolChoiceParam
SDK response structs cannot represent search selection. Dynamo’s public serializers echo the original choice; this value is only their typed base.
Trait Implementations§
Source§impl Clone for RequestToolChoiceParam
impl Clone for RequestToolChoiceParam
Source§impl Debug for RequestToolChoiceParam
impl Debug for RequestToolChoiceParam
Source§impl<'de> Deserialize<'de> for RequestToolChoiceParam
impl<'de> Deserialize<'de> for RequestToolChoiceParam
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 PartialEq for RequestToolChoiceParam
impl PartialEq for RequestToolChoiceParam
Source§impl Serialize for RequestToolChoiceParam
impl Serialize for RequestToolChoiceParam
impl StructuralPartialEq for RequestToolChoiceParam
Auto Trait Implementations§
impl Forget for RequestToolChoiceParam
impl Freeze for RequestToolChoiceParam
impl RefUnwindSafe for RequestToolChoiceParam
impl Send for RequestToolChoiceParam
impl Sync for RequestToolChoiceParam
impl Unpin for RequestToolChoiceParam
impl UnsafeUnpin for RequestToolChoiceParam
impl UnwindSafe for RequestToolChoiceParam
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