|
14 | 14 | "url": "http://www.apache.org/licenses/LICENSE-2.0" |
15 | 15 | }, |
16 | 16 | "version": "2.0.0", |
17 | | - "x-box-commit-hash": "a46c886ab1" |
| 17 | + "x-box-commit-hash": "324e40ffd7" |
18 | 18 | }, |
19 | 19 | "servers": [ |
20 | 20 | { |
|
24325 | 24325 | "post": { |
24326 | 24326 | "operationId": "post_ai_extract", |
24327 | 24327 | "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.", |
24329 | 24329 | "x-stability-level": "beta", |
24330 | 24330 | "requestBody": { |
24331 | 24331 | "content": { |
|
24379 | 24379 | "post": { |
24380 | 24380 | "operationId": "post_ai_extract_structured", |
24381 | 24381 | "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).", |
24383 | 24383 | "x-stability-level": "beta", |
24384 | 24384 | "requestBody": { |
24385 | 24385 | "content": { |
|
24537 | 24537 | "x-box-tag": "ai" |
24538 | 24538 | }, |
24539 | 24539 | "AiAgentBasicTextTool": { |
24540 | | - "description": "AI agent tool used to handle basic text.", |
| 24540 | + "description": "AI agent processor used to handle basic text.", |
24541 | 24541 | "type": "object", |
24542 | 24542 | "allOf": [ |
24543 | 24543 | { |
|
24564 | 24564 | "x-box-tag": "ai" |
24565 | 24565 | }, |
24566 | 24566 | "AiAgentBasicTextToolBase": { |
24567 | | - "description": "AI agent tool used to handle basic text.", |
| 24567 | + "description": "AI agent processor used to handle basic text.", |
24568 | 24568 | "type": "object", |
24569 | 24569 | "properties": { |
24570 | 24570 | "model": { |
|
24597 | 24597 | "x-box-tag": "ai" |
24598 | 24598 | }, |
24599 | 24599 | "AiAgentBasicTextToolTextGen": { |
24600 | | - "description": "AI agent tool used to handle basic text.", |
| 24600 | + "description": "AI agent processor used to handle basic text.", |
24601 | 24601 | "type": "object", |
24602 | 24602 | "allOf": [ |
24603 | 24603 | { |
|
24677 | 24677 | "x-box-resource-id": "ai_agent_extract_structured", |
24678 | 24678 | "x-box-tag": "ai" |
24679 | 24679 | }, |
| 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 | + }, |
24680 | 24715 | "AiAgentLongTextTool": { |
24681 | | - "description": "AI agent tool used to to handle longer text.", |
| 24716 | + "description": "AI agent processor used to to handle longer text.", |
24682 | 24717 | "type": "object", |
24683 | 24718 | "allOf": [ |
24684 | 24719 | { |
|
24706 | 24741 | "description": "The number of tokens per chunk.", |
24707 | 24742 | "type": "integer", |
24708 | 24743 | "example": 64, |
| 24744 | + "maximum": 512, |
24709 | 24745 | "minimum": 1 |
24710 | 24746 | } |
24711 | 24747 | } |
|
24719 | 24755 | "x-box-tag": "ai" |
24720 | 24756 | }, |
24721 | 24757 | "AiAgentLongTextToolTextGen": { |
24722 | | - "description": "AI agent tool used to to handle longer text.", |
| 24758 | + "description": "AI agent processor used to to handle longer text.", |
24723 | 24759 | "type": "object", |
24724 | 24760 | "allOf": [ |
24725 | 24761 | { |
|
24747 | 24783 | "description": "The number of tokens per chunk.", |
24748 | 24784 | "type": "integer", |
24749 | 24785 | "example": 64, |
| 24786 | + "maximum": 512, |
24750 | 24787 | "minimum": 1 |
24751 | 24788 | } |
24752 | 24789 | } |
|
25230 | 25267 | "description": "The reason the response finishes.", |
25231 | 25268 | "type": "string", |
25232 | 25269 | "example": "done" |
| 25270 | + }, |
| 25271 | + "ai_agent_info": { |
| 25272 | + "$ref": "#/components/schemas/AiAgentInfo" |
25233 | 25273 | } |
25234 | 25274 | }, |
25235 | 25275 | "required": [ |
|
27563 | 27603 | } |
27564 | 27604 | }, |
27565 | 27605 | { |
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." |
27567 | 27607 | }, |
27568 | 27608 | { |
27569 | 27609 | "nullable": true |
|
27576 | 27616 | "$ref": "#/components/schemas/Folder--Mini" |
27577 | 27617 | }, |
27578 | 27618 | { |
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." |
27580 | 27620 | } |
27581 | 27621 | ], |
27582 | 27622 | "nullable": true |
|
0 commit comments