From 55e6ed5b83510a379ead948eaacc83d95adf9ff5 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 5 May 2026 06:19:02 -0700 Subject: [PATCH] fix: Mark id field of AIAgentReference required (box/box-openapi#1629) (box/box-openapi#595) --- .codegen.json | 2 +- box_sdk_gen/schemas/ai_agent_reference.py | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.codegen.json b/.codegen.json index 3b548676..120a38d2 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "c571efa", "specHash": "f899bf6", "version": "10.8.0" } +{ "engineHash": "c571efa", "specHash": "65c9c57", "version": "10.8.0" } diff --git a/box_sdk_gen/schemas/ai_agent_reference.py b/box_sdk_gen/schemas/ai_agent_reference.py index 9f7dd1dc..5b95d3b7 100644 --- a/box_sdk_gen/schemas/ai_agent_reference.py +++ b/box_sdk_gen/schemas/ai_agent_reference.py @@ -1,7 +1,5 @@ from enum import Enum -from typing import Optional - from box_sdk_gen.internal.base_object import BaseObject from box_sdk_gen.box.errors import BoxSDKError @@ -16,19 +14,19 @@ class AiAgentReference(BaseObject): def __init__( self, + id: str, *, type: AiAgentReferenceTypeField = AiAgentReferenceTypeField.AI_AGENT_ID, - id: Optional[str] = None, **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. 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](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent))., defaults to None - :type id: Optional[str], optional + for the [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent)). + :type id: str + :param type: The type of AI agent used to handle queries., defaults to AiAgentReferenceTypeField.AI_AGENT_ID + :type type: AiAgentReferenceTypeField, optional """ super().__init__(**kwargs) - self.type = type self.id = id + self.type = type