azure-ai-agentserver-core 1.0.0b2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/ai/agentserver/__init__.py +1 -0
- azure/ai/agentserver/core/__init__.py +14 -0
- azure/ai/agentserver/core/_version.py +9 -0
- azure/ai/agentserver/core/constants.py +13 -0
- azure/ai/agentserver/core/logger.py +161 -0
- azure/ai/agentserver/core/models/__init__.py +7 -0
- azure/ai/agentserver/core/models/_create_response.py +12 -0
- azure/ai/agentserver/core/models/openai/__init__.py +16 -0
- azure/ai/agentserver/core/models/projects/__init__.py +820 -0
- azure/ai/agentserver/core/models/projects/_enums.py +767 -0
- azure/ai/agentserver/core/models/projects/_models.py +15049 -0
- azure/ai/agentserver/core/models/projects/_patch.py +39 -0
- azure/ai/agentserver/core/models/projects/_patch_evaluations.py +48 -0
- azure/ai/agentserver/core/models/projects/_utils/__init__.py +6 -0
- azure/ai/agentserver/core/models/projects/_utils/model_base.py +1237 -0
- azure/ai/agentserver/core/models/projects/_utils/serialization.py +2030 -0
- azure/ai/agentserver/core/py.typed +0 -0
- azure/ai/agentserver/core/server/__init__.py +1 -0
- azure/ai/agentserver/core/server/base.py +324 -0
- azure/ai/agentserver/core/server/common/__init__.py +1 -0
- azure/ai/agentserver/core/server/common/agent_run_context.py +76 -0
- azure/ai/agentserver/core/server/common/id_generator/__init__.py +5 -0
- azure/ai/agentserver/core/server/common/id_generator/foundry_id_generator.py +136 -0
- azure/ai/agentserver/core/server/common/id_generator/id_generator.py +19 -0
- azure_ai_agentserver_core-1.0.0b2.dist-info/METADATA +149 -0
- azure_ai_agentserver_core-1.0.0b2.dist-info/RECORD +29 -0
- azure_ai_agentserver_core-1.0.0b2.dist-info/WHEEL +5 -0
- azure_ai_agentserver_core-1.0.0b2.dist-info/licenses/LICENSE +21 -0
- azure_ai_agentserver_core-1.0.0b2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# --------------------------------------------------------------------------
|
|
3
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
+
# Code generated by Microsoft (R) Python Code Generator.
|
|
6
|
+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
# --------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
from enum import Enum
|
|
10
|
+
from azure.core import CaseInsensitiveEnumMeta
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AgentContainerOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
14
|
+
"""Status of the container operation for a specific version of an agent."""
|
|
15
|
+
|
|
16
|
+
NOT_STARTED = "NotStarted"
|
|
17
|
+
"""The container operation is not started."""
|
|
18
|
+
IN_PROGRESS = "InProgress"
|
|
19
|
+
"""The container operation is in progress."""
|
|
20
|
+
SUCCEEDED = "Succeeded"
|
|
21
|
+
"""The container operation has succeeded."""
|
|
22
|
+
FAILED = "Failed"
|
|
23
|
+
"""The container operation has failed."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AgentContainerStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
27
|
+
"""Status of the container of a specific version of an agent."""
|
|
28
|
+
|
|
29
|
+
STARTING = "Starting"
|
|
30
|
+
"""The container is starting."""
|
|
31
|
+
RUNNING = "Running"
|
|
32
|
+
"""The container is running."""
|
|
33
|
+
STOPPING = "Stopping"
|
|
34
|
+
"""The container is stopping."""
|
|
35
|
+
STOPPED = "Stopped"
|
|
36
|
+
"""The container is stopped."""
|
|
37
|
+
FAILED = "Failed"
|
|
38
|
+
"""The container has failed."""
|
|
39
|
+
DELETING = "Deleting"
|
|
40
|
+
"""The container is deleting."""
|
|
41
|
+
DELETED = "Deleted"
|
|
42
|
+
"""The container is deleted."""
|
|
43
|
+
UPDATING = "Updating"
|
|
44
|
+
"""The container is updating."""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class AgentKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
48
|
+
"""Type of AgentKind."""
|
|
49
|
+
|
|
50
|
+
PROMPT = "prompt"
|
|
51
|
+
HOSTED = "hosted"
|
|
52
|
+
CONTAINER_APP = "container_app"
|
|
53
|
+
WORKFLOW = "workflow"
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class AgentProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
57
|
+
"""Type of AgentProtocol."""
|
|
58
|
+
|
|
59
|
+
ACTIVITY_PROTOCOL = "activity_protocol"
|
|
60
|
+
RESPONSES = "responses"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class AnnotationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
64
|
+
"""Type of AnnotationType."""
|
|
65
|
+
|
|
66
|
+
FILE_CITATION = "file_citation"
|
|
67
|
+
URL_CITATION = "url_citation"
|
|
68
|
+
FILE_PATH = "file_path"
|
|
69
|
+
CONTAINER_FILE_CITATION = "container_file_citation"
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class AttackStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
73
|
+
"""Strategies for attacks."""
|
|
74
|
+
|
|
75
|
+
EASY = "easy"
|
|
76
|
+
"""Represents a default set of easy complexity attacks. Easy complexity attacks require less
|
|
77
|
+
effort, such as translation of a prompt into some encoding, and does not require any Large
|
|
78
|
+
Language Model to convert or orchestrate."""
|
|
79
|
+
MODERATE = "moderate"
|
|
80
|
+
"""Represents a default set of moderate complexity attacks. Moderate complexity attacks require
|
|
81
|
+
having access to resources such as another generative AI model."""
|
|
82
|
+
DIFFICULT = "difficult"
|
|
83
|
+
"""Represents a default set of difficult complexity attacks. Difficult complexity attacks include
|
|
84
|
+
attacks that require access to significant resources and effort to execute an attack such as
|
|
85
|
+
knowledge of search-based algorithms in addition to a generative AI model."""
|
|
86
|
+
ASCII_ART = "ascii_art"
|
|
87
|
+
"""Generates visual art using ASCII characters, often used for creative or obfuscation purposes."""
|
|
88
|
+
ASCII_SMUGGLER = "ascii_smuggler"
|
|
89
|
+
"""Conceals data within ASCII characters, making it harder to detect."""
|
|
90
|
+
ATBASH = "atbash"
|
|
91
|
+
"""Implements the Atbash cipher, a simple substitution cipher where each letter is mapped to its
|
|
92
|
+
reverse."""
|
|
93
|
+
BASE64 = "base64"
|
|
94
|
+
"""Encodes binary data into a text format using Base64, commonly used for data transmission."""
|
|
95
|
+
BINARY = "binary"
|
|
96
|
+
"""Converts text into binary code, representing data in a series of 0s and 1s."""
|
|
97
|
+
CAESAR = "caesar"
|
|
98
|
+
"""Applies the Caesar cipher, a substitution cipher that shifts characters by a fixed number of
|
|
99
|
+
positions."""
|
|
100
|
+
CHARACTER_SPACE = "character_space"
|
|
101
|
+
"""Alters text by adding spaces between characters, often used for obfuscation."""
|
|
102
|
+
JAILBREAK = "jailbreak"
|
|
103
|
+
"""Injects specially crafted prompts to bypass AI safeguards, known as User Injected Prompt
|
|
104
|
+
Attacks (UPIA)."""
|
|
105
|
+
ANSII_ATTACK = "ansii_attack"
|
|
106
|
+
"""Utilizes ANSI escape sequences to manipulate text appearance and behavior."""
|
|
107
|
+
CHARACTER_SWAP = "character_swap"
|
|
108
|
+
"""Swaps characters within text to create variations or obfuscate the original content."""
|
|
109
|
+
SUFFIX_APPEND = "suffix_append"
|
|
110
|
+
"""Appends an adversarial suffix to the prompt."""
|
|
111
|
+
STRING_JOIN = "string_join"
|
|
112
|
+
"""Joins multiple strings together, often used for concatenation or obfuscation."""
|
|
113
|
+
UNICODE_CONFUSABLE = "unicode_confusable"
|
|
114
|
+
"""Uses Unicode characters that look similar to standard characters, creating visual confusion."""
|
|
115
|
+
UNICODE_SUBSTITUTION = "unicode_substitution"
|
|
116
|
+
"""Substitutes standard characters with Unicode equivalents, often for obfuscation."""
|
|
117
|
+
DIACRITIC = "diacritic"
|
|
118
|
+
"""Adds diacritical marks to characters, changing their appearance and sometimes their meaning."""
|
|
119
|
+
FLIP = "flip"
|
|
120
|
+
"""Flips characters from front to back, creating a mirrored effect."""
|
|
121
|
+
LEETSPEAK = "leetspeak"
|
|
122
|
+
"""Transforms text into Leetspeak, a form of encoding that replaces letters with similar-looking
|
|
123
|
+
numbers or symbols."""
|
|
124
|
+
ROT13 = "rot13"
|
|
125
|
+
"""Applies the ROT13 cipher, a simple substitution cipher that shifts characters by 13 positions."""
|
|
126
|
+
MORSE = "morse"
|
|
127
|
+
"""Encodes text into Morse code, using dots and dashes to represent characters."""
|
|
128
|
+
URL = "url"
|
|
129
|
+
"""Encodes text into URL format."""
|
|
130
|
+
BASELINE = "baseline"
|
|
131
|
+
"""Represents the baseline direct adversarial probing, which is used by attack strategies as the
|
|
132
|
+
attack objective."""
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class AzureAISearchQueryType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
136
|
+
"""Available query types for Azure AI Search tool."""
|
|
137
|
+
|
|
138
|
+
SIMPLE = "simple"
|
|
139
|
+
"""Query type ``simple``"""
|
|
140
|
+
SEMANTIC = "semantic"
|
|
141
|
+
"""Query type ``semantic``"""
|
|
142
|
+
VECTOR = "vector"
|
|
143
|
+
"""Query type ``vector``"""
|
|
144
|
+
VECTOR_SIMPLE_HYBRID = "vector_simple_hybrid"
|
|
145
|
+
"""Query type ``vector_simple_hybrid``"""
|
|
146
|
+
VECTOR_SEMANTIC_HYBRID = "vector_semantic_hybrid"
|
|
147
|
+
"""Query type ``vector_semantic_hybrid``"""
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class CodeInterpreterOutputType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
151
|
+
"""Type of CodeInterpreterOutputType."""
|
|
152
|
+
|
|
153
|
+
LOGS = "logs"
|
|
154
|
+
IMAGE = "image"
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
class ComputerActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
158
|
+
"""Type of ComputerActionType."""
|
|
159
|
+
|
|
160
|
+
SCREENSHOT = "screenshot"
|
|
161
|
+
CLICK = "click"
|
|
162
|
+
DOUBLE_CLICK = "double_click"
|
|
163
|
+
SCROLL = "scroll"
|
|
164
|
+
TYPE = "type"
|
|
165
|
+
WAIT = "wait"
|
|
166
|
+
KEYPRESS = "keypress"
|
|
167
|
+
DRAG = "drag"
|
|
168
|
+
MOVE = "move"
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
class ComputerToolCallOutputItemOutputType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
172
|
+
"""A computer screenshot image used with the computer use tool."""
|
|
173
|
+
|
|
174
|
+
SCREENSHOT = "computer_screenshot"
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class ConnectionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
178
|
+
"""The Type (or category) of the connection."""
|
|
179
|
+
|
|
180
|
+
AZURE_OPEN_AI = "AzureOpenAI"
|
|
181
|
+
"""Azure OpenAI Service"""
|
|
182
|
+
AZURE_BLOB_STORAGE = "AzureBlob"
|
|
183
|
+
"""Azure Blob Storage, with specified container"""
|
|
184
|
+
AZURE_STORAGE_ACCOUNT = "AzureStorageAccount"
|
|
185
|
+
"""Azure Blob Storage, with container not specified (used by Agents)"""
|
|
186
|
+
AZURE_AI_SEARCH = "CognitiveSearch"
|
|
187
|
+
"""Azure AI Search"""
|
|
188
|
+
COSMOS_DB = "CosmosDB"
|
|
189
|
+
"""CosmosDB"""
|
|
190
|
+
API_KEY = "ApiKey"
|
|
191
|
+
"""Generic connection that uses API Key authentication"""
|
|
192
|
+
APPLICATION_CONFIGURATION = "AppConfig"
|
|
193
|
+
"""Application Configuration"""
|
|
194
|
+
APPLICATION_INSIGHTS = "AppInsights"
|
|
195
|
+
"""Application Insights"""
|
|
196
|
+
CUSTOM = "CustomKeys"
|
|
197
|
+
"""Custom Keys"""
|
|
198
|
+
REMOTE_TOOL = "RemoteTool"
|
|
199
|
+
"""Remote tool"""
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class CredentialType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
203
|
+
"""The credential type used by the connection."""
|
|
204
|
+
|
|
205
|
+
API_KEY = "ApiKey"
|
|
206
|
+
"""API Key credential"""
|
|
207
|
+
ENTRA_ID = "AAD"
|
|
208
|
+
"""Entra ID credential (formerly known as AAD)"""
|
|
209
|
+
SAS = "SAS"
|
|
210
|
+
"""Shared Access Signature (SAS) credential"""
|
|
211
|
+
CUSTOM = "CustomKeys"
|
|
212
|
+
"""Custom credential"""
|
|
213
|
+
NONE = "None"
|
|
214
|
+
"""No credential"""
|
|
215
|
+
AGENTIC_IDENTITY = "AgenticIdentityToken"
|
|
216
|
+
"""Agentic identity credential"""
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
class DatasetType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
220
|
+
"""Enum to determine the type of data."""
|
|
221
|
+
|
|
222
|
+
URI_FILE = "uri_file"
|
|
223
|
+
"""URI file."""
|
|
224
|
+
URI_FOLDER = "uri_folder"
|
|
225
|
+
"""URI folder."""
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class DayOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
229
|
+
"""Days of the week for recurrence schedule."""
|
|
230
|
+
|
|
231
|
+
SUNDAY = "Sunday"
|
|
232
|
+
"""Sunday."""
|
|
233
|
+
MONDAY = "Monday"
|
|
234
|
+
"""Monday."""
|
|
235
|
+
TUESDAY = "Tuesday"
|
|
236
|
+
"""Tuesday."""
|
|
237
|
+
WEDNESDAY = "Wednesday"
|
|
238
|
+
"""Wednesday."""
|
|
239
|
+
THURSDAY = "Thursday"
|
|
240
|
+
"""Thursday."""
|
|
241
|
+
FRIDAY = "Friday"
|
|
242
|
+
"""Friday."""
|
|
243
|
+
SATURDAY = "Saturday"
|
|
244
|
+
"""Saturday."""
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
class DeploymentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
248
|
+
"""Type of DeploymentType."""
|
|
249
|
+
|
|
250
|
+
MODEL_DEPLOYMENT = "ModelDeployment"
|
|
251
|
+
"""Model deployment"""
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
class EvaluationRuleActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
255
|
+
"""Type of the evaluation action."""
|
|
256
|
+
|
|
257
|
+
CONTINUOUS_EVALUATION = "continuousEvaluation"
|
|
258
|
+
"""Continuous evaluation."""
|
|
259
|
+
HUMAN_EVALUATION = "humanEvaluation"
|
|
260
|
+
"""Human evaluation."""
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class EvaluationRuleEventType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
264
|
+
"""Type of the evaluation rule event."""
|
|
265
|
+
|
|
266
|
+
RESPONSE_COMPLETED = "response.completed"
|
|
267
|
+
"""Response completed."""
|
|
268
|
+
MANUAL = "manual"
|
|
269
|
+
"""Manual trigger."""
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
class EvaluationTaxonomyInputType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
273
|
+
"""Type of the evaluation taxonomy input."""
|
|
274
|
+
|
|
275
|
+
AGENT = "agent"
|
|
276
|
+
"""Agent"""
|
|
277
|
+
POLICY = "policy"
|
|
278
|
+
"""Policy."""
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
class EvaluatorCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
282
|
+
"""The category of the evaluator."""
|
|
283
|
+
|
|
284
|
+
QUALITY = "quality"
|
|
285
|
+
"""Quality"""
|
|
286
|
+
SAFETY = "safety"
|
|
287
|
+
"""Risk & Safety"""
|
|
288
|
+
AGENTS = "agents"
|
|
289
|
+
"""Agents"""
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
class EvaluatorDefinitionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
293
|
+
"""The type of evaluator definition."""
|
|
294
|
+
|
|
295
|
+
PROMPT = "prompt"
|
|
296
|
+
"""Prompt-based definition"""
|
|
297
|
+
CODE = "code"
|
|
298
|
+
"""Code-based definition"""
|
|
299
|
+
PROMPT_AND_CODE = "prompt_and_code"
|
|
300
|
+
"""Prompt & Code Based definition"""
|
|
301
|
+
SERVICE = "service"
|
|
302
|
+
"""Service-based evaluator"""
|
|
303
|
+
OPENAI_GRADERS = "openai_graders"
|
|
304
|
+
"""OpenAI graders"""
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
class EvaluatorMetricDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
308
|
+
"""The direction of the metric indicating whether a higher value is better, a lower value is
|
|
309
|
+
better, or neutral.
|
|
310
|
+
"""
|
|
311
|
+
|
|
312
|
+
INCREASE = "increase"
|
|
313
|
+
"""It indicates a higher value is better for this metric"""
|
|
314
|
+
DECREASE = "decrease"
|
|
315
|
+
"""It indicates a lower value is better for this metric"""
|
|
316
|
+
NEUTRAL = "neutral"
|
|
317
|
+
"""It indicates no preference for this metric direction"""
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
class EvaluatorMetricType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
321
|
+
"""The type of the evaluator."""
|
|
322
|
+
|
|
323
|
+
ORDINAL = "ordinal"
|
|
324
|
+
"""Ordinal metric representing categories that can be ordered or ranked."""
|
|
325
|
+
CONTINUOUS = "continuous"
|
|
326
|
+
"""Continuous metric representing values in a continuous range."""
|
|
327
|
+
BOOLEAN = "boolean"
|
|
328
|
+
"""Boolean metric representing true/false values"""
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
class EvaluatorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
332
|
+
"""The type of the evaluator."""
|
|
333
|
+
|
|
334
|
+
BUILT_IN = "builtin"
|
|
335
|
+
"""Built-in evaluator (Microsoft provided)"""
|
|
336
|
+
CUSTOM = "custom"
|
|
337
|
+
"""Custom evaluator"""
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
class IndexType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
341
|
+
"""Type of IndexType."""
|
|
342
|
+
|
|
343
|
+
AZURE_SEARCH = "AzureSearch"
|
|
344
|
+
"""Azure search"""
|
|
345
|
+
COSMOS_DB = "CosmosDBNoSqlVectorStore"
|
|
346
|
+
"""CosmosDB"""
|
|
347
|
+
MANAGED_AZURE_SEARCH = "ManagedAzureSearch"
|
|
348
|
+
"""Managed Azure Search"""
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
class InsightType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
352
|
+
"""The request of the insights."""
|
|
353
|
+
|
|
354
|
+
EVALUATION_RUN_CLUSTER_INSIGHT = "EvaluationRunClusterInsight"
|
|
355
|
+
"""Insights on an Evaluation run result."""
|
|
356
|
+
AGENT_CLUSTER_INSIGHT = "AgentClusterInsight"
|
|
357
|
+
"""Cluster Insight on an Agent."""
|
|
358
|
+
EVALUATION_COMPARISON = "EvaluationComparison"
|
|
359
|
+
"""Evaluation Comparison."""
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
class ItemContentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
363
|
+
"""Multi-modal input and output contents."""
|
|
364
|
+
|
|
365
|
+
INPUT_TEXT = "input_text"
|
|
366
|
+
INPUT_AUDIO = "input_audio"
|
|
367
|
+
INPUT_IMAGE = "input_image"
|
|
368
|
+
INPUT_FILE = "input_file"
|
|
369
|
+
OUTPUT_TEXT = "output_text"
|
|
370
|
+
OUTPUT_AUDIO = "output_audio"
|
|
371
|
+
REFUSAL = "refusal"
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
class ItemType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
375
|
+
"""Type of ItemType."""
|
|
376
|
+
|
|
377
|
+
MESSAGE = "message"
|
|
378
|
+
FILE_SEARCH_CALL = "file_search_call"
|
|
379
|
+
FUNCTION_CALL = "function_call"
|
|
380
|
+
FUNCTION_CALL_OUTPUT = "function_call_output"
|
|
381
|
+
COMPUTER_CALL = "computer_call"
|
|
382
|
+
COMPUTER_CALL_OUTPUT = "computer_call_output"
|
|
383
|
+
WEB_SEARCH_CALL = "web_search_call"
|
|
384
|
+
REASONING = "reasoning"
|
|
385
|
+
ITEM_REFERENCE = "item_reference"
|
|
386
|
+
IMAGE_GENERATION_CALL = "image_generation_call"
|
|
387
|
+
CODE_INTERPRETER_CALL = "code_interpreter_call"
|
|
388
|
+
LOCAL_SHELL_CALL = "local_shell_call"
|
|
389
|
+
LOCAL_SHELL_CALL_OUTPUT = "local_shell_call_output"
|
|
390
|
+
MCP_LIST_TOOLS = "mcp_list_tools"
|
|
391
|
+
MCP_APPROVAL_REQUEST = "mcp_approval_request"
|
|
392
|
+
MCP_APPROVAL_RESPONSE = "mcp_approval_response"
|
|
393
|
+
MCP_CALL = "mcp_call"
|
|
394
|
+
STRUCTURED_OUTPUTS = "structured_outputs"
|
|
395
|
+
WORKFLOW_ACTION = "workflow_action"
|
|
396
|
+
MEMORY_SEARCH_CALL = "memory_search_call"
|
|
397
|
+
OAUTH_CONSENT_REQUEST = "oauth_consent_request"
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
class LocationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
401
|
+
"""Type of LocationType."""
|
|
402
|
+
|
|
403
|
+
APPROXIMATE = "approximate"
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
class MemoryItemKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
407
|
+
"""Memory item kind."""
|
|
408
|
+
|
|
409
|
+
USER_PROFILE = "user_profile"
|
|
410
|
+
"""User profile information extracted from conversations."""
|
|
411
|
+
CHAT_SUMMARY = "chat_summary"
|
|
412
|
+
"""Summary of chat conversations."""
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
class MemoryOperationKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
416
|
+
"""Memory operation kind."""
|
|
417
|
+
|
|
418
|
+
CREATE = "create"
|
|
419
|
+
"""Create a new memory item."""
|
|
420
|
+
UPDATE = "update"
|
|
421
|
+
"""Update an existing memory item."""
|
|
422
|
+
DELETE = "delete"
|
|
423
|
+
"""Delete an existing memory item."""
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
class MemoryStoreKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
427
|
+
"""The type of memory store implementation to use."""
|
|
428
|
+
|
|
429
|
+
DEFAULT = "default"
|
|
430
|
+
"""The default memory store implementation."""
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class MemoryStoreUpdateStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
434
|
+
"""Status of a memory store update operation."""
|
|
435
|
+
|
|
436
|
+
QUEUED = "queued"
|
|
437
|
+
IN_PROGRESS = "in_progress"
|
|
438
|
+
COMPLETED = "completed"
|
|
439
|
+
FAILED = "failed"
|
|
440
|
+
SUPERSEDED = "superseded"
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
class OpenApiAuthType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
444
|
+
"""Authentication type for OpenApi endpoint. Allowed types are:
|
|
445
|
+
* Anonymous (no authentication required)
|
|
446
|
+
* Project Connection (requires project_connection_id to endpoint, as setup in AI Foundry)
|
|
447
|
+
* Managed_Identity (requires audience for identity based auth).
|
|
448
|
+
"""
|
|
449
|
+
|
|
450
|
+
ANONYMOUS = "anonymous"
|
|
451
|
+
PROJECT_CONNECTION = "project_connection"
|
|
452
|
+
MANAGED_IDENTITY = "managed_identity"
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
class OperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
456
|
+
"""Enum describing allowed operation states."""
|
|
457
|
+
|
|
458
|
+
NOT_STARTED = "NotStarted"
|
|
459
|
+
"""The operation has not started."""
|
|
460
|
+
RUNNING = "Running"
|
|
461
|
+
"""The operation is in progress."""
|
|
462
|
+
SUCCEEDED = "Succeeded"
|
|
463
|
+
"""The operation has completed successfully."""
|
|
464
|
+
FAILED = "Failed"
|
|
465
|
+
"""The operation has failed."""
|
|
466
|
+
CANCELED = "Canceled"
|
|
467
|
+
"""The operation has been canceled by the user."""
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
class PendingUploadType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
471
|
+
"""The type of pending upload."""
|
|
472
|
+
|
|
473
|
+
NONE = "None"
|
|
474
|
+
"""No pending upload."""
|
|
475
|
+
BLOB_REFERENCE = "BlobReference"
|
|
476
|
+
"""Blob Reference is the only supported type."""
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
class ReasoningEffort(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
480
|
+
"""**o-series models only**
|
|
481
|
+
Constrains effort on reasoning for
|
|
482
|
+
`reasoning models <https://platform.openai.com/docs/guides/reasoning>`_.
|
|
483
|
+
Currently supported values are ``low``, ``medium``, and ``high``. Reducing
|
|
484
|
+
reasoning effort can result in faster responses and fewer tokens used
|
|
485
|
+
on reasoning in a response.
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
LOW = "low"
|
|
489
|
+
MEDIUM = "medium"
|
|
490
|
+
HIGH = "high"
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
class ReasoningItemSummaryPartType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
494
|
+
"""Type of ReasoningItemSummaryPartType."""
|
|
495
|
+
|
|
496
|
+
SUMMARY_TEXT = "summary_text"
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
class RecurrenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
500
|
+
"""Recurrence type."""
|
|
501
|
+
|
|
502
|
+
HOURLY = "Hourly"
|
|
503
|
+
"""Hourly recurrence pattern."""
|
|
504
|
+
DAILY = "Daily"
|
|
505
|
+
"""Daily recurrence pattern."""
|
|
506
|
+
WEEKLY = "Weekly"
|
|
507
|
+
"""Weekly recurrence pattern."""
|
|
508
|
+
MONTHLY = "Monthly"
|
|
509
|
+
"""Monthly recurrence pattern."""
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
class ResponseErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
513
|
+
"""The error code for the response."""
|
|
514
|
+
|
|
515
|
+
SERVER_ERROR = "server_error"
|
|
516
|
+
RATE_LIMIT_EXCEEDED = "rate_limit_exceeded"
|
|
517
|
+
INVALID_PROMPT = "invalid_prompt"
|
|
518
|
+
VECTOR_STORE_TIMEOUT = "vector_store_timeout"
|
|
519
|
+
INVALID_IMAGE = "invalid_image"
|
|
520
|
+
INVALID_IMAGE_FORMAT = "invalid_image_format"
|
|
521
|
+
INVALID_BASE64_IMAGE = "invalid_base64_image"
|
|
522
|
+
INVALID_IMAGE_URL = "invalid_image_url"
|
|
523
|
+
IMAGE_TOO_LARGE = "image_too_large"
|
|
524
|
+
IMAGE_TOO_SMALL = "image_too_small"
|
|
525
|
+
IMAGE_PARSE_ERROR = "image_parse_error"
|
|
526
|
+
IMAGE_CONTENT_POLICY_VIOLATION = "image_content_policy_violation"
|
|
527
|
+
INVALID_IMAGE_MODE = "invalid_image_mode"
|
|
528
|
+
IMAGE_FILE_TOO_LARGE = "image_file_too_large"
|
|
529
|
+
UNSUPPORTED_IMAGE_MEDIA_TYPE = "unsupported_image_media_type"
|
|
530
|
+
EMPTY_IMAGE_FILE = "empty_image_file"
|
|
531
|
+
FAILED_TO_DOWNLOAD_IMAGE = "failed_to_download_image"
|
|
532
|
+
IMAGE_FILE_NOT_FOUND = "image_file_not_found"
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
class ResponsesMessageRole(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
536
|
+
"""The collection of valid roles for responses message items."""
|
|
537
|
+
|
|
538
|
+
SYSTEM = "system"
|
|
539
|
+
DEVELOPER = "developer"
|
|
540
|
+
USER = "user"
|
|
541
|
+
ASSISTANT = "assistant"
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
class ResponseStreamEventType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
545
|
+
"""Type of ResponseStreamEventType."""
|
|
546
|
+
|
|
547
|
+
RESPONSE_AUDIO_DELTA = "response.audio.delta"
|
|
548
|
+
RESPONSE_AUDIO_DONE = "response.audio.done"
|
|
549
|
+
RESPONSE_AUDIO_TRANSCRIPT_DELTA = "response.audio_transcript.delta"
|
|
550
|
+
RESPONSE_AUDIO_TRANSCRIPT_DONE = "response.audio_transcript.done"
|
|
551
|
+
RESPONSE_CODE_INTERPRETER_CALL_CODE_DELTA = "response.code_interpreter_call_code.delta"
|
|
552
|
+
RESPONSE_CODE_INTERPRETER_CALL_CODE_DONE = "response.code_interpreter_call_code.done"
|
|
553
|
+
RESPONSE_CODE_INTERPRETER_CALL_COMPLETED = "response.code_interpreter_call.completed"
|
|
554
|
+
RESPONSE_CODE_INTERPRETER_CALL_IN_PROGRESS = "response.code_interpreter_call.in_progress"
|
|
555
|
+
RESPONSE_CODE_INTERPRETER_CALL_INTERPRETING = "response.code_interpreter_call.interpreting"
|
|
556
|
+
RESPONSE_COMPLETED = "response.completed"
|
|
557
|
+
RESPONSE_CONTENT_PART_ADDED = "response.content_part.added"
|
|
558
|
+
RESPONSE_CONTENT_PART_DONE = "response.content_part.done"
|
|
559
|
+
RESPONSE_CREATED = "response.created"
|
|
560
|
+
ERROR = "error"
|
|
561
|
+
RESPONSE_FILE_SEARCH_CALL_COMPLETED = "response.file_search_call.completed"
|
|
562
|
+
RESPONSE_FILE_SEARCH_CALL_IN_PROGRESS = "response.file_search_call.in_progress"
|
|
563
|
+
RESPONSE_FILE_SEARCH_CALL_SEARCHING = "response.file_search_call.searching"
|
|
564
|
+
RESPONSE_FUNCTION_CALL_ARGUMENTS_DELTA = "response.function_call_arguments.delta"
|
|
565
|
+
RESPONSE_FUNCTION_CALL_ARGUMENTS_DONE = "response.function_call_arguments.done"
|
|
566
|
+
RESPONSE_IN_PROGRESS = "response.in_progress"
|
|
567
|
+
RESPONSE_FAILED = "response.failed"
|
|
568
|
+
RESPONSE_INCOMPLETE = "response.incomplete"
|
|
569
|
+
RESPONSE_OUTPUT_ITEM_ADDED = "response.output_item.added"
|
|
570
|
+
RESPONSE_OUTPUT_ITEM_DONE = "response.output_item.done"
|
|
571
|
+
RESPONSE_REFUSAL_DELTA = "response.refusal.delta"
|
|
572
|
+
RESPONSE_REFUSAL_DONE = "response.refusal.done"
|
|
573
|
+
RESPONSE_OUTPUT_TEXT_ANNOTATION_ADDED = "response.output_text.annotation.added"
|
|
574
|
+
RESPONSE_OUTPUT_TEXT_DELTA = "response.output_text.delta"
|
|
575
|
+
RESPONSE_OUTPUT_TEXT_DONE = "response.output_text.done"
|
|
576
|
+
RESPONSE_REASONING_SUMMARY_PART_ADDED = "response.reasoning_summary_part.added"
|
|
577
|
+
RESPONSE_REASONING_SUMMARY_PART_DONE = "response.reasoning_summary_part.done"
|
|
578
|
+
RESPONSE_REASONING_SUMMARY_TEXT_DELTA = "response.reasoning_summary_text.delta"
|
|
579
|
+
RESPONSE_REASONING_SUMMARY_TEXT_DONE = "response.reasoning_summary_text.done"
|
|
580
|
+
RESPONSE_WEB_SEARCH_CALL_COMPLETED = "response.web_search_call.completed"
|
|
581
|
+
RESPONSE_WEB_SEARCH_CALL_IN_PROGRESS = "response.web_search_call.in_progress"
|
|
582
|
+
RESPONSE_WEB_SEARCH_CALL_SEARCHING = "response.web_search_call.searching"
|
|
583
|
+
RESPONSE_IMAGE_GENERATION_CALL_COMPLETED = "response.image_generation_call.completed"
|
|
584
|
+
RESPONSE_IMAGE_GENERATION_CALL_GENERATING = "response.image_generation_call.generating"
|
|
585
|
+
RESPONSE_IMAGE_GENERATION_CALL_IN_PROGRESS = "response.image_generation_call.in_progress"
|
|
586
|
+
RESPONSE_IMAGE_GENERATION_CALL_PARTIAL_IMAGE = "response.image_generation_call.partial_image"
|
|
587
|
+
RESPONSE_MCP_CALL_ARGUMENTS_DELTA = "response.mcp_call.arguments_delta"
|
|
588
|
+
RESPONSE_MCP_CALL_ARGUMENTS_DONE = "response.mcp_call.arguments_done"
|
|
589
|
+
RESPONSE_MCP_CALL_COMPLETED = "response.mcp_call.completed"
|
|
590
|
+
RESPONSE_MCP_CALL_FAILED = "response.mcp_call.failed"
|
|
591
|
+
RESPONSE_MCP_CALL_IN_PROGRESS = "response.mcp_call.in_progress"
|
|
592
|
+
RESPONSE_MCP_LIST_TOOLS_COMPLETED = "response.mcp_list_tools.completed"
|
|
593
|
+
RESPONSE_MCP_LIST_TOOLS_FAILED = "response.mcp_list_tools.failed"
|
|
594
|
+
RESPONSE_MCP_LIST_TOOLS_IN_PROGRESS = "response.mcp_list_tools.in_progress"
|
|
595
|
+
RESPONSE_QUEUED = "response.queued"
|
|
596
|
+
RESPONSE_REASONING_DELTA = "response.reasoning.delta"
|
|
597
|
+
RESPONSE_REASONING_DONE = "response.reasoning.done"
|
|
598
|
+
RESPONSE_REASONING_SUMMARY_DELTA = "response.reasoning_summary.delta"
|
|
599
|
+
RESPONSE_REASONING_SUMMARY_DONE = "response.reasoning_summary.done"
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
class ResponseTextFormatConfigurationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
603
|
+
"""An object specifying the format that the model must output.
|
|
604
|
+
Configuring ``{ "type": "json_schema" }`` enables Structured Outputs,
|
|
605
|
+
which ensures the model will match your supplied JSON schema. Learn more in the
|
|
606
|
+
`Structured Outputs guide </docs/guides/structured-outputs>`_.
|
|
607
|
+
The default format is ``{ "type": "text" }`` with no additional options.
|
|
608
|
+
**Not recommended for gpt-4o and newer models:**
|
|
609
|
+
Setting to ``{ "type": "json_object" }`` enables the older JSON mode, which
|
|
610
|
+
ensures the message the model generates is valid JSON. Using ``json_schema``
|
|
611
|
+
is preferred for models that support it.
|
|
612
|
+
"""
|
|
613
|
+
|
|
614
|
+
TEXT = "text"
|
|
615
|
+
JSON_SCHEMA = "json_schema"
|
|
616
|
+
JSON_OBJECT = "json_object"
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
class RiskCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
620
|
+
"""Risk category for the attack objective."""
|
|
621
|
+
|
|
622
|
+
HATE_UNFAIRNESS = "HateUnfairness"
|
|
623
|
+
"""Represents content related to hate or unfairness."""
|
|
624
|
+
VIOLENCE = "Violence"
|
|
625
|
+
"""Represents content related to violence."""
|
|
626
|
+
SEXUAL = "Sexual"
|
|
627
|
+
"""Represents content of a sexual nature."""
|
|
628
|
+
SELF_HARM = "SelfHarm"
|
|
629
|
+
"""Represents content related to self-harm."""
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
class SampleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
633
|
+
"""The type of sample used in the analysis."""
|
|
634
|
+
|
|
635
|
+
EVALUATION_RESULT_SAMPLE = "EvaluationResultSample"
|
|
636
|
+
"""A sample from the evaluation result."""
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
class ScheduleProvisioningStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
640
|
+
"""Schedule provisioning status."""
|
|
641
|
+
|
|
642
|
+
CREATING = "Creating"
|
|
643
|
+
"""Represents the creation status of the schedule."""
|
|
644
|
+
UPDATING = "Updating"
|
|
645
|
+
"""Represents the updating status of the schedule."""
|
|
646
|
+
DELETING = "Deleting"
|
|
647
|
+
"""Represents the deleting status of the schedule."""
|
|
648
|
+
SUCCEEDED = "Succeeded"
|
|
649
|
+
"""Represents the succeeded status of the schedule."""
|
|
650
|
+
FAILED = "Failed"
|
|
651
|
+
"""Represents the failed status of the schedule."""
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
class ScheduleTaskType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
655
|
+
"""Type of the task."""
|
|
656
|
+
|
|
657
|
+
EVALUATION = "Evaluation"
|
|
658
|
+
"""Evaluation task."""
|
|
659
|
+
INSIGHT = "Insight"
|
|
660
|
+
"""Insight task."""
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
class ServiceTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
664
|
+
"""Specifies the processing type used for serving the request.
|
|
665
|
+
* If set to 'auto', then the request will be processed with the service tier configured in the
|
|
666
|
+
Project settings. Unless otherwise configured, the Project will use 'default'.
|
|
667
|
+
* If set to 'default', then the request will be processed with the standard pricing and
|
|
668
|
+
performance for the selected model.
|
|
669
|
+
* If set to '[flex](/docs/guides/flex-processing)' or 'priority', then the request will be
|
|
670
|
+
processed with the corresponding service tier. [Contact
|
|
671
|
+
sales](https://openai.com/contact-sales) to learn more about Priority processing.
|
|
672
|
+
* When not set, the default behavior is 'auto'.
|
|
673
|
+
When the ``service_tier`` parameter is set, the response body will include the
|
|
674
|
+
``service_tier`` value based on the processing mode actually used to serve the request. This
|
|
675
|
+
response value may be different from the value set in the parameter.
|
|
676
|
+
"""
|
|
677
|
+
|
|
678
|
+
AUTO = "auto"
|
|
679
|
+
DEFAULT = "default"
|
|
680
|
+
FLEX = "flex"
|
|
681
|
+
SCALE = "scale"
|
|
682
|
+
PRIORITY = "priority"
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class ToolChoiceObjectType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
686
|
+
"""Indicates that the model should use a built-in tool to generate a response.
|
|
687
|
+
`Learn more about built-in tools </docs/guides/tools>`_.
|
|
688
|
+
"""
|
|
689
|
+
|
|
690
|
+
FILE_SEARCH = "file_search"
|
|
691
|
+
FUNCTION = "function"
|
|
692
|
+
COMPUTER = "computer_use_preview"
|
|
693
|
+
WEB_SEARCH = "web_search_preview"
|
|
694
|
+
IMAGE_GENERATION = "image_generation"
|
|
695
|
+
CODE_INTERPRETER = "code_interpreter"
|
|
696
|
+
MCP = "mcp"
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
class ToolChoiceOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
700
|
+
"""Controls which (if any) tool is called by the model.
|
|
701
|
+
``none`` means the model will not call any tool and instead generates a message.
|
|
702
|
+
``auto`` means the model can pick between generating a message or calling one or
|
|
703
|
+
more tools.
|
|
704
|
+
``required`` means the model must call one or more tools.
|
|
705
|
+
"""
|
|
706
|
+
|
|
707
|
+
NONE = "none"
|
|
708
|
+
AUTO = "auto"
|
|
709
|
+
REQUIRED = "required"
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
class ToolType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
713
|
+
"""A tool that can be used to generate a response."""
|
|
714
|
+
|
|
715
|
+
FILE_SEARCH = "file_search"
|
|
716
|
+
FUNCTION = "function"
|
|
717
|
+
COMPUTER_USE_PREVIEW = "computer_use_preview"
|
|
718
|
+
WEB_SEARCH_PREVIEW = "web_search_preview"
|
|
719
|
+
MCP = "mcp"
|
|
720
|
+
CODE_INTERPRETER = "code_interpreter"
|
|
721
|
+
IMAGE_GENERATION = "image_generation"
|
|
722
|
+
LOCAL_SHELL = "local_shell"
|
|
723
|
+
BING_GROUNDING = "bing_grounding"
|
|
724
|
+
BROWSER_AUTOMATION_PREVIEW = "browser_automation_preview"
|
|
725
|
+
FABRIC_DATAAGENT_PREVIEW = "fabric_dataagent_preview"
|
|
726
|
+
SHAREPOINT_GROUNDING_PREVIEW = "sharepoint_grounding_preview"
|
|
727
|
+
AZURE_AI_SEARCH = "azure_ai_search"
|
|
728
|
+
OPENAPI = "openapi"
|
|
729
|
+
BING_CUSTOM_SEARCH_PREVIEW = "bing_custom_search_preview"
|
|
730
|
+
CAPTURE_STRUCTURED_OUTPUTS = "capture_structured_outputs"
|
|
731
|
+
A2_A_PREVIEW = "a2a_preview"
|
|
732
|
+
AZURE_FUNCTION = "azure_function"
|
|
733
|
+
MEMORY_SEARCH = "memory_search"
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
class TreatmentEffectType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
737
|
+
"""Treatment Effect Type."""
|
|
738
|
+
|
|
739
|
+
TOO_FEW_SAMPLES = "TooFewSamples"
|
|
740
|
+
"""Not enough samples to determine treatment effect."""
|
|
741
|
+
INCONCLUSIVE = "Inconclusive"
|
|
742
|
+
"""No significant difference between treatment and baseline."""
|
|
743
|
+
CHANGED = "Changed"
|
|
744
|
+
"""Indicates the metric changed with statistical significance, but the direction is neutral."""
|
|
745
|
+
IMPROVED = "Improved"
|
|
746
|
+
"""Indicates the treatment significantly improved the metric compared to baseline."""
|
|
747
|
+
DEGRADED = "Degraded"
|
|
748
|
+
"""Indicates the treatment significantly degraded the metric compared to baseline."""
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
class TriggerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
752
|
+
"""Type of the trigger."""
|
|
753
|
+
|
|
754
|
+
CRON = "Cron"
|
|
755
|
+
"""Cron based trigger."""
|
|
756
|
+
RECURRENCE = "Recurrence"
|
|
757
|
+
"""Recurrence based trigger."""
|
|
758
|
+
ONE_TIME = "OneTime"
|
|
759
|
+
"""One-time trigger."""
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
class WebSearchActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
763
|
+
"""Type of WebSearchActionType."""
|
|
764
|
+
|
|
765
|
+
SEARCH = "search"
|
|
766
|
+
OPEN_PAGE = "open_page"
|
|
767
|
+
FIND = "find"
|