mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
Support anyOf and enum in JsonSchema (#16875)
This brings us into better alignment with the JSON schema subset that is supported in <https://developers.openai.com/api/docs/guides/structured-outputs#supported-schemas>, and also allows us to render richer function signatures in code mode (e.g., anyOf{null, OtherObjectType})
This commit is contained in:
@@ -38,6 +38,7 @@ pub struct ResponsesApiTool {
|
||||
|
||||
#[derive(Debug, Clone, Serialize, PartialEq)]
|
||||
#[serde(tag = "type")]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum ToolSearchOutputTool {
|
||||
#[allow(dead_code)]
|
||||
#[serde(rename = "function")]
|
||||
|
||||
Reference in New Issue
Block a user