Skip to content

Commit

Permalink
fix: Merge schemas for AI Agent response and request parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
box-apimgmt committed Jul 22, 2024
1 parent 5378c47 commit 64eb385
Showing 1 changed file with 8 additions and 63 deletions.
71 changes: 8 additions & 63 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "http://www.apache.org/licenses/LICENSE-2.0"
},
"version": "2.0.0",
"x-box-commit-hash": "7174b64cb8"
"x-box-commit-hash": "6cbe4c12b1"
},
"servers": [
{
Expand Down Expand Up @@ -24062,10 +24062,10 @@
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/AiAgentAskResponse"
"$ref": "#/components/schemas/AiAgentAsk"
},
{
"$ref": "#/components/schemas/AiAgentTextGenResponse"
"$ref": "#/components/schemas/AiAgentTextGen"
}
]
}
Expand Down Expand Up @@ -24267,61 +24267,6 @@
},
"description": "AI text gen request object"
},
"AiAgentAsk": {
"title": "AI agent for question requests",
"type": "object",
"x-box-resource-id": "ai_agent_ask_request",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"ai_agent_ask"
],
"description": "The type of AI agent used to handle queries.\nThis parameter is **required**.",
"example": "ai_agent_ask",
"nullable": false
},
"long_text": {
"$ref": "#/components/schemas/AiAgentLongTextTool"
},
"basic_text": {
"$ref": "#/components/schemas/AiAgentBasicTextToolAsk"
},
"long_text_multi": {
"$ref": "#/components/schemas/AiAgentLongTextTool"
},
"basic_text_multi": {
"$ref": "#/components/schemas/AiAgentBasicTextToolAsk"
}
},
"description": "The AI agent used to handle queries."
},
"AiAgentTextGen": {
"title": "AI agent for text generation requests",
"type": "object",
"x-box-resource-id": "ai_agent_text_gen_request",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"ai_agent_text_gen"
],
"description": "The type of AI agent used for generating text.\nThis parameter is **required**.",
"example": "ai_agent_text_gen",
"nullable": false
},
"basic_gen": {
"$ref": "#/components/schemas/AiAgentBasicGenTool"
}
},
"description": "The AI agent used for generating text."
},
"PostOAuth2Token": {
"title": "Token request",
"type": "object",
Expand Down Expand Up @@ -25359,7 +25304,7 @@
},
"description": "AI response"
},
"AiAgentAskResponse": {
"AiAgentAsk": {
"title": "AI agent for question requests",
"type": "object",
"x-box-resource-id": "ai_agent_ask",
Expand Down Expand Up @@ -25389,7 +25334,7 @@
},
"description": "The AI agent used to handle queries."
},
"AiAgentTextGenResponse": {
"AiAgentTextGen": {
"title": "AI agent for text generation requests",
"type": "object",
"x-box-tag": "ai",
Expand Down Expand Up @@ -37669,10 +37614,10 @@
}
},
"AppItemEventSource": {
"title": "`AppItem` Event source",
"title": "AppItem event source",
"type": "object",
"x-box-resource-id": "app_item_event_source",
"description": "The `AppItem` that triggered an event in the event stream.",
"description": "The AppItem that triggered an event in the event stream.",
"required": [
"id",
"type",
Expand All @@ -37690,7 +37635,7 @@
"enum": [
"app_item"
],
"description": "The type of the source that this event represents. Can be only `app_item`.\n",
"description": "The type of the source that this event represents. Can only be `app_item`.\n",
"example": "app_item"
},
"app_item_type": {
Expand Down

0 comments on commit 64eb385

Please sign in to comment.