Skip to content

Commit d31bca4

Browse files
fix!: Mark id field of AIAgentReference required (box/box-openapi#1629) (box/box-openapi#595) (#1422)
1 parent 14ecb7b commit d31bca4

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "c571efa", "specHash": "f899bf6", "version": "10.8.0" }
1+
{ "engineHash": "c571efa", "specHash": "65c9c57", "version": "10.8.0" }
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from enum import Enum
22

3-
from typing import Optional
4-
53
from box_sdk_gen.internal.base_object import BaseObject
64

75
from box_sdk_gen.box.errors import BoxSDKError
@@ -16,19 +14,19 @@ class AiAgentReference(BaseObject):
1614

1715
def __init__(
1816
self,
17+
id: str,
1918
*,
2019
type: AiAgentReferenceTypeField = AiAgentReferenceTypeField.AI_AGENT_ID,
21-
id: Optional[str] = None,
2220
**kwargs
2321
):
2422
"""
25-
:param type: The type of AI agent used to handle queries., defaults to AiAgentReferenceTypeField.AI_AGENT_ID
26-
:type type: AiAgentReferenceTypeField, optional
2723
:param id: The ID of an Agent. This can be a numeric ID for custom agents (for example, `14031`)
2824
or a unique identifier for pre-built agents (for example, `enhanced_extract_agent`
29-
for the [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent))., defaults to None
30-
:type id: Optional[str], optional
25+
for the [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent)).
26+
:type id: str
27+
:param type: The type of AI agent used to handle queries., defaults to AiAgentReferenceTypeField.AI_AGENT_ID
28+
:type type: AiAgentReferenceTypeField, optional
3129
"""
3230
super().__init__(**kwargs)
33-
self.type = type
3431
self.id = id
32+
self.type = type

0 commit comments

Comments
 (0)