Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "87747c8", "specHash": "a05e5d7", "version": "0.1.0" }
{ "engineHash": "cedd6e8", "specHash": "1ed059a", "version": "0.1.0" }
2 changes: 1 addition & 1 deletion box_sdk_gen/box/event_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _get_long_poll_info(self):
info = self._events_manager.get_events_with_long_polling()

server = next(
(e for e in (info.entries or []) if e.type == 'realtime_server'), None
(e for e in info.entries or [] if e.type == 'realtime_server'), None
)
if not server:
raise BoxSDKError(message='No realtime server found in the response.')
Expand Down
2 changes: 1 addition & 1 deletion box_sdk_gen/managers/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def create_ai_extract_structured(
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).
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).

:param items: The items to be processed by the LLM. Currently you can use files only.
:type items: List[AiItemBase]
Expand Down
10 changes: 6 additions & 4 deletions box_sdk_gen/schemas/ai_agent_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def __init__(
**kwargs
):
"""
:param type: The type of AI agent used to handle queries., defaults to AiAgentReferenceTypeField.AI_AGENT_ID
:type type: AiAgentReferenceTypeField, optional
:param id: The ID of an Agent., defaults to None
:type id: Optional[str], optional
:param type: The type of AI agent used to handle queries., defaults to AiAgentReferenceTypeField.AI_AGENT_ID
:type type: AiAgentReferenceTypeField, optional
:param id: The ID of an Agent. This can be a numeric ID for custom agents (for example, `14031`)
or a unique identifier for pre-built agents (for example, `enhanced_extract_agent`
for the [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent))., defaults to None
:type id: Optional[str], optional
"""
super().__init__(**kwargs)
self.type = type
Expand Down
2 changes: 1 addition & 1 deletion docs/box_sdk_gen/ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Sends an AI request to supported Large Language Models (LLMs) and returns extrac
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).
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).

This operation is performed by calling function `create_ai_extract_structured`.

Expand Down
Loading
Loading