pub enum ToolStrictCompatibilityModeTrue {
StripParametersWithUnsupportedValidation,
StripUnsupportedValidation,
}
Expand description
Azure OpenAI doesn’t support maxLength
right now https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure%2Cdotnet-entra-id&pivots=programming-language-csharp#unsupported-type-specific-keywords. Need to strip. - strip-parameters-with-unsupported-validation
will strip parameters with unsupported validation. - strip-unsupported-validation
will keep the parameters but strip unsupported validation. @default strip-unsupported-validation
Variants§
Trait Implementations§
Source§impl Clone for ToolStrictCompatibilityModeTrue
impl Clone for ToolStrictCompatibilityModeTrue
Source§fn clone(&self) -> ToolStrictCompatibilityModeTrue
fn clone(&self) -> ToolStrictCompatibilityModeTrue
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ToolStrictCompatibilityModeTrue
impl Default for ToolStrictCompatibilityModeTrue
Source§fn default() -> ToolStrictCompatibilityModeTrue
fn default() -> ToolStrictCompatibilityModeTrue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolStrictCompatibilityModeTrue
impl<'de> Deserialize<'de> for ToolStrictCompatibilityModeTrue
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 Ord for ToolStrictCompatibilityModeTrue
impl Ord for ToolStrictCompatibilityModeTrue
Source§fn cmp(&self, other: &ToolStrictCompatibilityModeTrue) -> Ordering
fn cmp(&self, other: &ToolStrictCompatibilityModeTrue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ToolStrictCompatibilityModeTrue
impl PartialEq for ToolStrictCompatibilityModeTrue
Source§fn eq(&self, other: &ToolStrictCompatibilityModeTrue) -> bool
fn eq(&self, other: &ToolStrictCompatibilityModeTrue) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for ToolStrictCompatibilityModeTrue
impl PartialOrd for ToolStrictCompatibilityModeTrue
impl Copy for ToolStrictCompatibilityModeTrue
impl Eq for ToolStrictCompatibilityModeTrue
impl StructuralPartialEq for ToolStrictCompatibilityModeTrue
Auto Trait Implementations§
impl Freeze for ToolStrictCompatibilityModeTrue
impl RefUnwindSafe for ToolStrictCompatibilityModeTrue
impl Send for ToolStrictCompatibilityModeTrue
impl Sync for ToolStrictCompatibilityModeTrue
impl Unpin for ToolStrictCompatibilityModeTrue
impl UnwindSafe for ToolStrictCompatibilityModeTrue
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