diff --git a/.codegen.json b/.codegen.json index bf3e889c1..92d8bacf5 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "2ac72c4", "specHash": "8b51a89", "version": "10.1.0" } +{ "engineHash": "2ac72c4", "specHash": "e7ce024", "version": "10.1.0" } diff --git a/docs/ai.md b/docs/ai.md index a8b3cef23..a94181327 100644 --- a/docs/ai.md +++ b/docs/ai.md @@ -134,10 +134,13 @@ A response including the answer from the LLM. ## Extract metadata (structured) Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs. -For this request, you either need a metadata template or a list of fields you want to extract. -Input is **either** a metadata template or a list of fields to ensure the structure. -To 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) -or use the [metadata template API](g://metadata/templates/create). This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent). + +To define the extraction structure, provide either a metadata template or a list of fields. To 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) +or use the [metadata template API](g://metadata/templates/create). + +This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent). + +For information about supported file formats and languages, see the [Extract metadata from file (structured)](g://box-ai/ai-tutorials/extract-metadata-structured) API guide. This operation is performed by calling function `createAiExtractStructured`. diff --git a/src/main/java/com/box/sdkgen/managers/ai/AiManager.java b/src/main/java/com/box/sdkgen/managers/ai/AiManager.java index e14eacee0..20027ca17 100644 --- a/src/main/java/com/box/sdkgen/managers/ai/AiManager.java +++ b/src/main/java/com/box/sdkgen/managers/ai/AiManager.java @@ -198,15 +198,19 @@ public AiResponse createAiExtract(AiExtract requestBody, CreateAiExtractHeaders /** * Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as - * a set of key-value pairs. For this request, you either need a metadata template or a list of - * fields you want to extract. Input is **either** a metadata template or a list of fields to - * ensure the structure. To learn more about creating templates, see [Creating metadata templates - * in the Admin + * a set of key-value pairs. + * + *
To define the extraction structure, provide either a metadata template or a list of fields. + * To 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) - * or use the [metadata template API](g://metadata/templates/create). This endpoint also supports - * [Enhanced Extract + * or use the [metadata template API](g://metadata/templates/create). + * + *
This endpoint also supports [Enhanced Extract * Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent). * + *
For information about supported file formats and languages, see the [Extract metadata from + * file (structured)](g://box-ai/ai-tutorials/extract-metadata-structured) API guide. + * * @param requestBody Request body of createAiExtractStructured method */ public AiExtractStructuredResponse createAiExtractStructured(AiExtractStructured requestBody) { @@ -215,15 +219,19 @@ public AiExtractStructuredResponse createAiExtractStructured(AiExtractStructured /** * Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as - * a set of key-value pairs. For this request, you either need a metadata template or a list of - * fields you want to extract. Input is **either** a metadata template or a list of fields to - * ensure the structure. To learn more about creating templates, see [Creating metadata templates - * in the Admin + * a set of key-value pairs. + * + *
To define the extraction structure, provide either a metadata template or a list of fields. + * To 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) - * or use the [metadata template API](g://metadata/templates/create). This endpoint also supports - * [Enhanced Extract + * or use the [metadata template API](g://metadata/templates/create). + * + *
This endpoint also supports [Enhanced Extract * Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent). * + *
For information about supported file formats and languages, see the [Extract metadata from + * file (structured)](g://box-ai/ai-tutorials/extract-metadata-structured) API guide. + * * @param requestBody Request body of createAiExtractStructured method * @param headers Headers of createAiExtractStructured method */