-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathai_studio_agent_ask.py
More file actions
70 lines (58 loc) · 2.75 KB
/
ai_studio_agent_ask.py
File metadata and controls
70 lines (58 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from enum import Enum
from typing import Optional
from typing import List
from box_sdk_gen.internal.base_object import BaseObject
from box_sdk_gen.schemas.ai_studio_agent_long_text_tool import AiStudioAgentLongTextTool
from box_sdk_gen.schemas.ai_studio_agent_basic_text_tool import (
AiStudioAgentBasicTextTool,
)
from box_sdk_gen.schemas.ai_studio_agent_spreadsheet_tool import (
AiStudioAgentSpreadsheetTool,
)
from box_sdk_gen.box.errors import BoxSDKError
class AiStudioAgentAskTypeField(str, Enum):
AI_AGENT_ASK = 'ai_agent_ask'
class AiStudioAgentAsk(BaseObject):
_discriminator = 'type', {'ai_agent_ask'}
def __init__(
self,
access_state: str,
description: str,
*,
type: AiStudioAgentAskTypeField = AiStudioAgentAskTypeField.AI_AGENT_ASK,
custom_instructions: Optional[str] = None,
suggested_questions: Optional[List[str]] = None,
long_text: Optional[AiStudioAgentLongTextTool] = None,
basic_text: Optional[AiStudioAgentBasicTextTool] = None,
basic_image: Optional[AiStudioAgentBasicTextTool] = None,
spreadsheet: Optional[AiStudioAgentSpreadsheetTool] = None,
long_text_multi: Optional[AiStudioAgentLongTextTool] = None,
basic_text_multi: Optional[AiStudioAgentBasicTextTool] = None,
basic_image_multi: Optional[AiStudioAgentBasicTextTool] = None,
**kwargs
):
"""
:param access_state: The state of the AI Agent capability. Possible values are: `enabled` and `disabled`.
:type access_state: str
:param description: The description of the AI agent.
:type description: str
:param type: The type of AI agent used to handle queries., defaults to AiStudioAgentAskTypeField.AI_AGENT_ASK
:type type: AiStudioAgentAskTypeField, optional
:param custom_instructions: Custom instructions for the AI agent., defaults to None
:type custom_instructions: Optional[str], optional
:param suggested_questions: Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed., defaults to None
:type suggested_questions: Optional[List[str]], optional
"""
super().__init__(**kwargs)
self.access_state = access_state
self.description = description
self.type = type
self.custom_instructions = custom_instructions
self.suggested_questions = suggested_questions
self.long_text = long_text
self.basic_text = basic_text
self.basic_image = basic_image
self.spreadsheet = spreadsheet
self.long_text_multi = long_text_multi
self.basic_text_multi = basic_text_multi
self.basic_image_multi = basic_image_multi