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": "eed6b7a", "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
Empty file added test/box_sdk_gen/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

from box_sdk_gen.managers.metadata_templates import DeleteMetadataTemplateScope

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from box_sdk_gen.internal.utils import get_uuid

Expand All @@ -74,7 +74,7 @@

from box_sdk_gen.internal.utils import get_value_from_object_raw_data

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

from box_sdk_gen.schemas.ai_agent_ask import AiAgentAsk

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/ai_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

from box_sdk_gen.client import BoxClient

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

from box_sdk_gen.internal.utils import get_uuid

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/app_item_associations.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from box_sdk_gen.internal.utils import get_env_var

from test.commons import get_default_client_with_user_subject
from test.box_sdk_gen.test.commons import get_default_client_with_user_subject


def testListFileAppItemAssocations():
Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from box_sdk_gen.internal.utils import get_env_var

from test.commons import get_default_client_with_user_subject
from test.box_sdk_gen.test.commons import get_default_client_with_user_subject

user_id: str = get_env_var('USER_ID')

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/avatars.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from box_sdk_gen.internal.utils import decode_base_64_byte_stream

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/chunked_uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from box_sdk_gen.internal.utils import ByteStream

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from box_sdk_gen.schemas.file import File

Expand Down
6 changes: 3 additions & 3 deletions test/box_sdk_gen/test/classifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import get_or_create_classification_template
from test.box_sdk_gen.test.commons import get_or_create_classification_template

from test.commons import get_or_create_classification
from test.box_sdk_gen.test.commons import get_or_create_classification

from box_sdk_gen.schemas.classification_template import ClassificationTemplate

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

from box_sdk_gen.internal.utils import read_byte_stream

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from box_sdk_gen.networking.fetch_options import FetchOptions

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/collaboration_allowlist_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
CreateCollaborationWhitelistEntryDirection,
)

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from box_sdk_gen.internal.utils import get_uuid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/device_pinners.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from box_sdk_gen.managers.device_pinners import GetEnterpriseDevicePinnersDirection

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from box_sdk_gen.internal.utils import get_env_var

Expand Down
6 changes: 3 additions & 3 deletions test/box_sdk_gen/test/docgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@

from box_sdk_gen.schemas.v2025_r0.doc_gen_job_v2025_r0 import DocGenJobV2025R0

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

from test.commons import create_new_folder
from test.box_sdk_gen.test.commons import create_new_folder

client: BoxClient = get_default_client()

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/docgen_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

from box_sdk_gen.schemas.v2025_r0.doc_gen_jobs_v2025_r0 import DocGenJobsV2025R0

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

client: BoxClient = get_default_client()

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

from box_sdk_gen.internal.utils import read_buffer_from_file

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

from box_sdk_gen.networking.fetch_options import FetchOptions

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/email_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from box_sdk_gen.box.event_stream import EventStream

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from box_sdk_gen.schemas.event_source import EventSource

Expand Down
8 changes: 4 additions & 4 deletions test/box_sdk_gen/test/file_classifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

from test.commons import get_or_create_classification_template
from test.box_sdk_gen.test.commons import get_or_create_classification_template

from test.commons import get_or_create_classification
from test.box_sdk_gen.test.commons import get_or_create_classification

from box_sdk_gen.schemas.classification_template import ClassificationTemplate

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/file_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/file_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from box_sdk_gen.internal.utils import get_env_var

from test.commons import get_default_client_with_user_subject
from test.box_sdk_gen.test.commons import get_default_client_with_user_subject


def testGetCopyUpdateDeleteFileRequest():
Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/file_version_legal_holds.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from box_sdk_gen.client import BoxClient

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/file_version_retentions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

from box_sdk_gen.client import BoxClient

from test.commons import create_new_folder
from test.box_sdk_gen.test.commons import create_new_folder

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/file_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from box_sdk_gen.internal.utils import create_null

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/file_watermarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from box_sdk_gen.internal.utils import generate_byte_stream

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

from box_sdk_gen.internal.utils import create_null

from test.commons import upload_new_file
from test.box_sdk_gen.test.commons import upload_new_file

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
8 changes: 4 additions & 4 deletions test/box_sdk_gen/test/folder_classifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import create_new_folder
from test.box_sdk_gen.test.commons import create_new_folder

from test.commons import get_or_create_classification_template
from test.box_sdk_gen.test.commons import get_or_create_classification_template

from test.commons import get_or_create_classification
from test.box_sdk_gen.test.commons import get_or_create_classification

from box_sdk_gen.schemas.classification_template import ClassificationTemplate

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/folder_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import create_new_folder
from test.box_sdk_gen.test.commons import create_new_folder

client: BoxClient = get_default_client()

Expand Down
4 changes: 2 additions & 2 deletions test/box_sdk_gen/test/folder_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

from test.commons import create_new_folder
from test.box_sdk_gen.test.commons import create_new_folder

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/folder_watermarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
2 changes: 1 addition & 1 deletion test/box_sdk_gen/test/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from box_sdk_gen.internal.utils import get_uuid

from test.commons import get_default_client
from test.box_sdk_gen.test.commons import get_default_client

client: BoxClient = get_default_client()

Expand Down
Loading
Loading