Skip to content

Commit 1d5bb92

Browse files
authored
feat: add ai_agent info (#485)
1 parent 727afc9 commit 1d5bb92

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

openapi.json

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "http://www.apache.org/licenses/LICENSE-2.0"
1515
},
1616
"version": "2.0.0",
17-
"x-box-commit-hash": "a46c886ab1"
17+
"x-box-commit-hash": "324e40ffd7"
1818
},
1919
"servers": [
2020
{
@@ -24325,7 +24325,7 @@
2432524325
"post": {
2432624326
"operationId": "post_ai_extract",
2432724327
"summary": "Extract metadata (freeform)",
24328-
"description": "Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs.\nFreeform metadata extraction does not require any metadata template setup before sending the request.",
24328+
"description": "Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs.\nIn this request, both the prompt and the output can be freeform.\nMetadata template setup before sending the request is not required.",
2432924329
"x-stability-level": "beta",
2433024330
"requestBody": {
2433124331
"content": {
@@ -24379,7 +24379,7 @@
2437924379
"post": {
2438024380
"operationId": "post_ai_extract_structured",
2438124381
"summary": "Extract metadata (structured)",
24382-
"description": "Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.\nFor this request, you need to use an already defined metadata template or a define a schema yourself.\nTo learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)\nor use the [metadata template API](g://metadata/templates/create).",
24382+
"description": "Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.\nFor this request, you either need a metadata template or a list of fields you want to extract.\nInput is **either** a metadata template or a list of fields to ensure the structure.\nTo learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)\nor use the [metadata template API](g://metadata/templates/create).",
2438324383
"x-stability-level": "beta",
2438424384
"requestBody": {
2438524385
"content": {
@@ -24537,7 +24537,7 @@
2453724537
"x-box-tag": "ai"
2453824538
},
2453924539
"AiAgentBasicTextTool": {
24540-
"description": "AI agent tool used to handle basic text.",
24540+
"description": "AI agent processor used to handle basic text.",
2454124541
"type": "object",
2454224542
"allOf": [
2454324543
{
@@ -24564,7 +24564,7 @@
2456424564
"x-box-tag": "ai"
2456524565
},
2456624566
"AiAgentBasicTextToolBase": {
24567-
"description": "AI agent tool used to handle basic text.",
24567+
"description": "AI agent processor used to handle basic text.",
2456824568
"type": "object",
2456924569
"properties": {
2457024570
"model": {
@@ -24597,7 +24597,7 @@
2459724597
"x-box-tag": "ai"
2459824598
},
2459924599
"AiAgentBasicTextToolTextGen": {
24600-
"description": "AI agent tool used to handle basic text.",
24600+
"description": "AI agent processor used to handle basic text.",
2460124601
"type": "object",
2460224602
"allOf": [
2460324603
{
@@ -24677,8 +24677,43 @@
2467724677
"x-box-resource-id": "ai_agent_extract_structured",
2467824678
"x-box-tag": "ai"
2467924679
},
24680+
"AiAgentInfo": {
24681+
"description": "The information on the models and processors used in the request.",
24682+
"type": "object",
24683+
"properties": {
24684+
"models": {
24685+
"description": "The models used for the request",
24686+
"type": "array",
24687+
"items": {
24688+
"type": "object",
24689+
"properties": {
24690+
"name": {
24691+
"description": "The name of the model used for the request",
24692+
"type": "string",
24693+
"example": "azure__openai__text_embedding_ada_002"
24694+
},
24695+
"provider": {
24696+
"description": "The provider that owns the model used for the request",
24697+
"type": "string",
24698+
"example": "azure"
24699+
},
24700+
"supported_purpose": {
24701+
"description": "The supported purpose utilized by the model used for the request",
24702+
"type": "string",
24703+
"example": "embedding"
24704+
}
24705+
}
24706+
}
24707+
},
24708+
"processor": {
24709+
"description": "The processor used for the request",
24710+
"type": "string"
24711+
}
24712+
},
24713+
"title": "The information on the models and processors used in the request."
24714+
},
2468024715
"AiAgentLongTextTool": {
24681-
"description": "AI agent tool used to to handle longer text.",
24716+
"description": "AI agent processor used to to handle longer text.",
2468224717
"type": "object",
2468324718
"allOf": [
2468424719
{
@@ -24706,6 +24741,7 @@
2470624741
"description": "The number of tokens per chunk.",
2470724742
"type": "integer",
2470824743
"example": 64,
24744+
"maximum": 512,
2470924745
"minimum": 1
2471024746
}
2471124747
}
@@ -24719,7 +24755,7 @@
2471924755
"x-box-tag": "ai"
2472024756
},
2472124757
"AiAgentLongTextToolTextGen": {
24722-
"description": "AI agent tool used to to handle longer text.",
24758+
"description": "AI agent processor used to to handle longer text.",
2472324759
"type": "object",
2472424760
"allOf": [
2472524761
{
@@ -24747,6 +24783,7 @@
2474724783
"description": "The number of tokens per chunk.",
2474824784
"type": "integer",
2474924785
"example": 64,
24786+
"maximum": 512,
2475024787
"minimum": 1
2475124788
}
2475224789
}
@@ -25230,6 +25267,9 @@
2523025267
"description": "The reason the response finishes.",
2523125268
"type": "string",
2523225269
"example": "done"
25270+
},
25271+
"ai_agent_info": {
25272+
"$ref": "#/components/schemas/AiAgentInfo"
2523325273
}
2523425274
},
2523525275
"required": [
@@ -27563,7 +27603,7 @@
2756327603
}
2756427604
},
2756527605
{
27566-
"description": "The shared link for this file. This will be\n`null` if no shared link has been created for this\nfile."
27606+
"description": "The shared link for this file. This value will be\n`null` if no shared link has been created for this\nfile."
2756727607
},
2756827608
{
2756927609
"nullable": true
@@ -27576,7 +27616,7 @@
2757627616
"$ref": "#/components/schemas/Folder--Mini"
2757727617
},
2757827618
{
27579-
"description": "The folder that this file is located within."
27619+
"description": "The folder that this file is located within.\nThis value may be `null` for some folders such as\nthe root folder or the trash folder."
2758027620
}
2758127621
],
2758227622
"nullable": true

0 commit comments

Comments
 (0)