@azure/ai-projects 2.4.0 → 2.5.0
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.
- package/README.md +13 -2
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +9 -55
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/operations.d.ts +10 -10
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +6 -6
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/operations.d.ts +3 -3
- package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/operations.js +21 -23
- package/dist/browser/api/beta/routines/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/options.d.ts +20 -14
- package/dist/browser/api/beta/routines/options.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/options.js.map +1 -1
- package/dist/browser/classic/beta/agents/index.d.ts +5 -5
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/index.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +181 -98
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +245 -81
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/tracing/agentTracing.d.ts +16 -0
- package/dist/browser/tracing/agentTracing.d.ts.map +1 -0
- package/dist/browser/tracing/agentTracing.js +61 -0
- package/dist/browser/tracing/agentTracing.js.map +1 -0
- package/dist/browser/tracing/configuration.d.ts.map +1 -1
- package/dist/browser/tracing/configuration.js +7 -4
- package/dist/browser/tracing/configuration.js.map +1 -1
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +9 -63
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts +10 -10
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +5 -5
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/routines/operations.d.ts +3 -3
- package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.js +21 -23
- package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
- package/dist/commonjs/api/beta/routines/options.d.ts +20 -14
- package/dist/commonjs/api/beta/routines/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/options.js.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.d.ts +5 -5
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +181 -98
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +311 -165
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/tracing/agentTracing.d.ts +16 -0
- package/dist/commonjs/tracing/agentTracing.d.ts.map +1 -0
- package/dist/commonjs/tracing/agentTracing.js +74 -0
- package/dist/commonjs/tracing/agentTracing.js.map +7 -0
- package/dist/commonjs/tracing/configuration.d.ts.map +1 -1
- package/dist/commonjs/tracing/configuration.js +13 -3
- package/dist/commonjs/tracing/configuration.js.map +2 -2
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +9 -55
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/operations.d.ts +10 -10
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +6 -6
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/operations.d.ts +3 -3
- package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/operations.js +21 -23
- package/dist/esm/api/beta/routines/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/options.d.ts +20 -14
- package/dist/esm/api/beta/routines/options.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/options.js.map +1 -1
- package/dist/esm/classic/beta/agents/index.d.ts +5 -5
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/index.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +181 -98
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +245 -81
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/tracing/agentTracing.d.ts +16 -0
- package/dist/esm/tracing/agentTracing.d.ts.map +1 -0
- package/dist/esm/tracing/agentTracing.js +61 -0
- package/dist/esm/tracing/agentTracing.js.map +1 -0
- package/dist/esm/tracing/configuration.d.ts.map +1 -1
- package/dist/esm/tracing/configuration.js +7 -4
- package/dist/esm/tracing/configuration.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +9 -55
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/operations.d.ts +10 -10
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +6 -6
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/operations.d.ts +3 -3
- package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/operations.js +21 -23
- package/dist/react-native/api/beta/routines/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/options.d.ts +20 -14
- package/dist/react-native/api/beta/routines/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/options.js.map +1 -1
- package/dist/react-native/classic/beta/agents/index.d.ts +5 -5
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/index.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +181 -98
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +245 -81
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/tracing/agentTracing.d.ts +16 -0
- package/dist/react-native/tracing/agentTracing.d.ts.map +1 -0
- package/dist/react-native/tracing/agentTracing.js +61 -0
- package/dist/react-native/tracing/agentTracing.js.map +1 -0
- package/dist/react-native/tracing/configuration.d.ts.map +1 -1
- package/dist/react-native/tracing/configuration.js +7 -4
- package/dist/react-native/tracing/configuration.js.map +1 -1
- package/package.json +3 -3
|
@@ -145,11 +145,11 @@ export interface Tool {
|
|
|
145
145
|
export declare function toolSerializer(item: Tool): any;
|
|
146
146
|
export declare function toolDeserializer(item: any): Tool;
|
|
147
147
|
/** Alias for ToolUnion */
|
|
148
|
-
export type ToolUnion = BingGroundingTool | MicrosoftFabricPreviewTool | SharepointPreviewTool | AzureAISearchTool | OpenApiTool | BingCustomSearchPreviewTool | BrowserAutomationPreviewTool | AzureFunctionTool | CaptureStructuredOutputsTool | A2APreviewTool | WorkIQPreviewTool | FabricIQPreviewTool | MemorySearchPreviewTool | CodeInterpreterTool | FileSearchTool | WebSearchTool | MCPTool | FunctionTool | ComputerUsePreviewTool | ImageGenTool | LocalShellToolParam | FunctionShellToolParam | CustomToolParam | WebSearchPreviewTool | ApplyPatchToolParam | ComputerTool | NamespaceToolParam | ToolSearchToolParam | Tool;
|
|
148
|
+
export type ToolUnion = BingGroundingTool | MicrosoftFabricPreviewTool | SharepointPreviewTool | AzureAISearchTool | OpenApiTool | BingCustomSearchPreviewTool | BrowserAutomationPreviewTool | AzureFunctionTool | CaptureStructuredOutputsTool | A2APreviewTool | WorkIQPreviewTool | FabricIQPreviewTool | MemorySearchPreviewTool | CodeInterpreterTool | FileSearchTool | WebSearchTool | MCPTool | FunctionTool | ComputerUsePreviewTool | ProgrammaticToolCallingParam | ImageGenTool | LocalShellToolParam | FunctionShellToolParam | CustomToolParam | WebSearchPreviewTool | ApplyPatchToolParam | ComputerTool | NamespaceToolParam | ToolSearchToolParam | Tool;
|
|
149
149
|
export declare function toolUnionSerializer(item: ToolUnion): any;
|
|
150
150
|
export declare function toolUnionDeserializer(item: any): ToolUnion;
|
|
151
151
|
/** Type of ToolType */
|
|
152
|
-
export type ToolType = "function" | "file_search" | "computer" | "computer_use_preview" | "web_search" | "mcp" | "code_interpreter" | "image_generation" | "local_shell" | "shell" | "custom" | "namespace" | "tool_search" | "web_search_preview" | "apply_patch" | "a2a_preview" | "bing_custom_search_preview" | "browser_automation_preview" | "fabric_dataagent_preview" | "sharepoint_grounding_preview" | "memory_search_preview" | "work_iq_preview" | "fabric_iq_preview" | "toolbox_search_preview" | "azure_ai_search" | "azure_function" | "bing_grounding" | "capture_structured_outputs" | "openapi";
|
|
152
|
+
export type ToolType = "function" | "file_search" | "computer" | "computer_use_preview" | "web_search" | "mcp" | "code_interpreter" | "programmatic_tool_calling" | "image_generation" | "local_shell" | "shell" | "custom" | "namespace" | "tool_search" | "web_search_preview" | "apply_patch" | "a2a_preview" | "bing_custom_search_preview" | "browser_automation_preview" | "fabric_dataagent_preview" | "sharepoint_grounding_preview" | "memory_search_preview" | "work_iq_preview" | "fabric_iq_preview" | "toolbox_search_preview" | "azure_ai_search" | "azure_function" | "bing_grounding" | "capture_structured_outputs" | "openapi";
|
|
153
153
|
/** The input definition information for a bing grounding search tool as used to configure an agent. */
|
|
154
154
|
export interface BingGroundingTool extends Tool {
|
|
155
155
|
/** The object type, which is always 'bing_grounding'. */
|
|
@@ -650,6 +650,7 @@ export declare function memorySearchOptionsDeserializer(item: any): MemorySearch
|
|
|
650
650
|
export interface CodeInterpreterTool extends Tool {
|
|
651
651
|
/** The type of the code interpreter tool. Always `code_interpreter`. */
|
|
652
652
|
type: "code_interpreter";
|
|
653
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
653
654
|
/** Deprecated. This property is deprecated and will be removed in a future version. */
|
|
654
655
|
name?: string;
|
|
655
656
|
/** Deprecated. This property is deprecated and will be removed in a future version. */
|
|
@@ -739,10 +740,14 @@ export interface FunctionTool extends Tool {
|
|
|
739
740
|
description?: string;
|
|
740
741
|
/** The parameters schema for the function. */
|
|
741
742
|
parameters?: Record<string, unknown>;
|
|
743
|
+
/** The schema for the function output. */
|
|
744
|
+
output_schema?: Record<string, unknown>;
|
|
742
745
|
/** Whether the function arguments must strictly match the parameters schema. */
|
|
743
746
|
strict?: boolean;
|
|
744
747
|
/** Whether this function is deferred and loaded via tool search. */
|
|
745
748
|
defer_loading?: boolean;
|
|
749
|
+
/** The callers that may invoke this tool. */
|
|
750
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
746
751
|
}
|
|
747
752
|
export declare function functionToolSerializer(item: FunctionTool): any;
|
|
748
753
|
export declare function functionToolDeserializer(item: any): FunctionTool;
|
|
@@ -960,6 +965,8 @@ export interface MCPTool extends Tool {
|
|
|
960
965
|
headers?: Record<string, string>;
|
|
961
966
|
/** The list of allowed tool names for the MCP server. */
|
|
962
967
|
allowed_tools?: string[] | MCPToolFilter;
|
|
968
|
+
/** The callers that may invoke this tool. */
|
|
969
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
963
970
|
/** The approval requirements for the MCP tool. */
|
|
964
971
|
require_approval?: MCPToolRequireApproval | "always" | "never";
|
|
965
972
|
/** Whether this MCP tool is deferred and discovered via tool search. */
|
|
@@ -1058,6 +1065,8 @@ export interface FunctionShellToolParam extends Tool {
|
|
|
1058
1065
|
type: "shell";
|
|
1059
1066
|
/** The environment configuration for the function shell tool. */
|
|
1060
1067
|
environment?: FunctionShellToolParamEnvironmentUnion;
|
|
1068
|
+
/** The callers that may invoke this tool. */
|
|
1069
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
1061
1070
|
/** Deprecated. This property is deprecated and will be removed in a future version. */
|
|
1062
1071
|
name?: string;
|
|
1063
1072
|
/** Deprecated. This property is deprecated and will be removed in a future version. */
|
|
@@ -1188,6 +1197,7 @@ export interface CustomToolParam extends Tool {
|
|
|
1188
1197
|
format?: CustomToolParamFormatUnion;
|
|
1189
1198
|
/** Whether this tool should be deferred and discovered via tool search. */
|
|
1190
1199
|
defer_loading?: boolean;
|
|
1200
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
1191
1201
|
}
|
|
1192
1202
|
export declare function customToolParamSerializer(item: CustomToolParam): any;
|
|
1193
1203
|
export declare function customToolParamDeserializer(item: any): CustomToolParam;
|
|
@@ -1259,6 +1269,7 @@ export type SearchContentType = "text" | "image";
|
|
|
1259
1269
|
export interface ApplyPatchToolParam extends Tool {
|
|
1260
1270
|
/** The type of the tool. Always `apply_patch`. */
|
|
1261
1271
|
type: "apply_patch";
|
|
1272
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
1262
1273
|
}
|
|
1263
1274
|
export declare function applyPatchToolParamSerializer(item: ApplyPatchToolParam): any;
|
|
1264
1275
|
export declare function applyPatchToolParamDeserializer(item: any): ApplyPatchToolParam;
|
|
@@ -1295,8 +1306,10 @@ export interface FunctionToolParam {
|
|
|
1295
1306
|
parameters?: EmptyModelParam;
|
|
1296
1307
|
strict?: boolean;
|
|
1297
1308
|
type: "function";
|
|
1309
|
+
output_schema?: Record<string, any>;
|
|
1298
1310
|
/** Whether this function should be deferred and discovered via tool search. */
|
|
1299
1311
|
defer_loading?: boolean;
|
|
1312
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
1300
1313
|
}
|
|
1301
1314
|
export declare function functionToolParamSerializer(item: FunctionToolParam): any;
|
|
1302
1315
|
export declare function functionToolParamDeserializer(item: any): FunctionToolParam;
|
|
@@ -1322,6 +1335,14 @@ export type ToolSearchExecutionType = "server" | "client";
|
|
|
1322
1335
|
export interface ContainerConfiguration {
|
|
1323
1336
|
/** The container image for the hosted agent. */
|
|
1324
1337
|
image: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* The id (or name) of the Foundry project connection that provides the credentials used to
|
|
1340
|
+
* authenticate to the private container registry hosting `image`. The connection abstracts the
|
|
1341
|
+
* auth mechanism — for example a managed-identity-federated token exchange, or a username/token
|
|
1342
|
+
* secret — so registry credentials are never part of the agent definition. Omit for public images
|
|
1343
|
+
* or registries already reachable by the platform's default identity (for example, Azure Container Registry).
|
|
1344
|
+
*/
|
|
1345
|
+
registry_connection_id?: string;
|
|
1325
1346
|
}
|
|
1326
1347
|
export declare function containerConfigurationSerializer(item: ContainerConfiguration): any;
|
|
1327
1348
|
export declare function containerConfigurationDeserializer(item: any): ContainerConfiguration;
|
|
@@ -1471,6 +1492,11 @@ export declare function promptAgentDefinitionDeserializer(item: any): PromptAgen
|
|
|
1471
1492
|
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
1472
1493
|
*/
|
|
1473
1494
|
export interface Reasoning {
|
|
1495
|
+
/**
|
|
1496
|
+
* Controls the reasoning execution mode for the request.
|
|
1497
|
+
* When returned on a response, this is the effective execution mode.
|
|
1498
|
+
*/
|
|
1499
|
+
mode?: ReasoningModeEnum;
|
|
1474
1500
|
effort?: ReasoningEffort;
|
|
1475
1501
|
summary?: "auto" | "concise" | "detailed";
|
|
1476
1502
|
context?: "auto" | "current_turn" | "all_turns";
|
|
@@ -1489,7 +1515,7 @@ export declare function reasoningDeserializer(item: any): Reasoning;
|
|
|
1489
1515
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1490
1516
|
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1491
1517
|
*/
|
|
1492
|
-
export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
1518
|
+
export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
1493
1519
|
/** Alias for _PromptAgentDefinitionToolChoice */
|
|
1494
1520
|
export type _PromptAgentDefinitionToolChoice = string | ToolChoiceParamUnion;
|
|
1495
1521
|
export declare function _promptAgentDefinitionToolChoiceSerializer(item: _PromptAgentDefinitionToolChoice): any;
|
|
@@ -1505,11 +1531,11 @@ export interface ToolChoiceParam {
|
|
|
1505
1531
|
export declare function toolChoiceParamSerializer(item: ToolChoiceParam): any;
|
|
1506
1532
|
export declare function toolChoiceParamDeserializer(item: any): ToolChoiceParam;
|
|
1507
1533
|
/** Alias for ToolChoiceParamUnion */
|
|
1508
|
-
export type ToolChoiceParamUnion = ToolChoiceAllowed | ToolChoiceFunction | ToolChoiceMCP | ToolChoiceCustom | SpecificApplyPatchParam | SpecificFunctionShellParam | ToolChoiceFileSearch | ToolChoiceWebSearchPreview | ToolChoiceComputerUsePreview | ToolChoiceWebSearchPreview20250311 | ToolChoiceImageGeneration | ToolChoiceCodeInterpreter | ToolChoiceComputer | ToolChoiceComputerUse | ToolChoiceParam;
|
|
1534
|
+
export type ToolChoiceParamUnion = ToolChoiceAllowed | ToolChoiceFunction | ToolChoiceMCP | ToolChoiceCustom | SpecificProgrammaticToolCallingParam | SpecificApplyPatchParam | SpecificFunctionShellParam | ToolChoiceFileSearch | ToolChoiceWebSearchPreview | ToolChoiceComputerUsePreview | ToolChoiceWebSearchPreview20250311 | ToolChoiceImageGeneration | ToolChoiceCodeInterpreter | ToolChoiceComputer | ToolChoiceComputerUse | ToolChoiceParam;
|
|
1509
1535
|
export declare function toolChoiceParamUnionSerializer(item: ToolChoiceParamUnion): any;
|
|
1510
1536
|
export declare function toolChoiceParamUnionDeserializer(item: any): ToolChoiceParamUnion;
|
|
1511
1537
|
/** Type of ToolChoiceParamType */
|
|
1512
|
-
export type ToolChoiceParamType = "allowed_tools" | "function" | "mcp" | "custom" | "apply_patch" | "shell" | "file_search" | "web_search_preview" | "computer_use_preview" | "web_search_preview_2025_03_11" | "image_generation" | "code_interpreter" | "computer" | "computer_use";
|
|
1538
|
+
export type ToolChoiceParamType = "allowed_tools" | "function" | "mcp" | "custom" | "programmatic_tool_calling" | "apply_patch" | "shell" | "file_search" | "web_search_preview" | "computer_use_preview" | "web_search_preview_2025_03_11" | "image_generation" | "code_interpreter" | "computer" | "computer_use";
|
|
1513
1539
|
/** Constrains the tools available to the model to a pre-defined set. */
|
|
1514
1540
|
export interface ToolChoiceAllowed extends ToolChoiceParam {
|
|
1515
1541
|
/** Allowed tool configuration type. Always `allowed_tools`. */
|
|
@@ -2627,6 +2653,7 @@ export type ToolboxToolType = "code_interpreter" | "file_search" | "web_search"
|
|
|
2627
2653
|
/** A code interpreter tool stored in a toolbox. */
|
|
2628
2654
|
export interface CodeInterpreterToolboxTool extends ToolboxTool {
|
|
2629
2655
|
type: "code_interpreter";
|
|
2656
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
2630
2657
|
/**
|
|
2631
2658
|
* The code interpreter container. Can be a container ID or an object that
|
|
2632
2659
|
* specifies uploaded file IDs to make available to your code, along with an
|
|
@@ -2705,6 +2732,7 @@ export interface MCPToolboxTool extends ToolboxTool {
|
|
|
2705
2732
|
server_description?: string;
|
|
2706
2733
|
headers?: Record<string, string>;
|
|
2707
2734
|
allowed_tools?: string[] | MCPToolFilter;
|
|
2735
|
+
allowed_callers?: CallableToolAllowedCaller[];
|
|
2708
2736
|
require_approval?: MCPToolRequireApproval | "always" | "never";
|
|
2709
2737
|
/** Whether this MCP tool is deferred and discovered via tool search. */
|
|
2710
2738
|
defer_loading?: boolean;
|
|
@@ -3850,6 +3878,8 @@ export declare function memoryStoreOperationUsageDeserializer(item: any): Memory
|
|
|
3850
3878
|
export interface ResponseUsageInputTokensDetails {
|
|
3851
3879
|
/** The number of cached input tokens used. */
|
|
3852
3880
|
cached_tokens: number;
|
|
3881
|
+
/** The number of cache-write input tokens used. */
|
|
3882
|
+
cache_write_tokens?: number;
|
|
3853
3883
|
}
|
|
3854
3884
|
export declare function responseUsageInputTokensDetailsDeserializer(item: any): ResponseUsageInputTokensDetails;
|
|
3855
3885
|
/** model interface ResponseUsageOutputTokensDetails */
|
|
@@ -4248,30 +4278,22 @@ export interface Routine {
|
|
|
4248
4278
|
}
|
|
4249
4279
|
export declare function routineDeserializer(item: any): Routine;
|
|
4250
4280
|
/** The response data for a requested list of items. */
|
|
4251
|
-
export interface
|
|
4281
|
+
export interface _PagedResultWithNextLinkRoutine {
|
|
4252
4282
|
/** The requested list of items. */
|
|
4253
4283
|
data: Routine[];
|
|
4254
|
-
/** The
|
|
4255
|
-
|
|
4256
|
-
/** The last ID represented in this list. */
|
|
4257
|
-
last_id?: string;
|
|
4258
|
-
/** A value indicating whether there are additional values available not captured in this list. */
|
|
4259
|
-
has_more: boolean;
|
|
4284
|
+
/** The URL to fetch the next page of results, or absent if there are no additional pages. */
|
|
4285
|
+
next_link?: string;
|
|
4260
4286
|
}
|
|
4261
|
-
export declare function
|
|
4287
|
+
export declare function _pagedResultWithNextLinkRoutineDeserializer(item: any): _PagedResultWithNextLinkRoutine;
|
|
4262
4288
|
export declare function routineArrayDeserializer(result: Array<Routine>): any[];
|
|
4263
4289
|
/** The response data for a requested list of items. */
|
|
4264
|
-
export interface
|
|
4290
|
+
export interface _PagedResultWithNextLinkRoutineRun {
|
|
4265
4291
|
/** The requested list of items. */
|
|
4266
4292
|
data: RoutineRun[];
|
|
4267
|
-
/** The
|
|
4268
|
-
|
|
4269
|
-
/** The last ID represented in this list. */
|
|
4270
|
-
last_id?: string;
|
|
4271
|
-
/** A value indicating whether there are additional values available not captured in this list. */
|
|
4272
|
-
has_more: boolean;
|
|
4293
|
+
/** The URL to fetch the next page of results, or absent if there are no additional pages. */
|
|
4294
|
+
next_link?: string;
|
|
4273
4295
|
}
|
|
4274
|
-
export declare function
|
|
4296
|
+
export declare function _pagedResultWithNextLinkRoutineRunDeserializer(item: any): _PagedResultWithNextLinkRoutineRun;
|
|
4275
4297
|
export declare function routineRunArrayDeserializer(result: Array<RoutineRun>): any[];
|
|
4276
4298
|
/** A single routine run returned from the run history API. */
|
|
4277
4299
|
export interface RoutineRun {
|
|
@@ -4788,7 +4810,7 @@ export declare function fileDataGenerationJobSourceDeserializer(item: any): File
|
|
|
4788
4810
|
/** Options for managing data generation jobs. */
|
|
4789
4811
|
export interface DataGenerationJobOptions {
|
|
4790
4812
|
/** The data generation job type. */
|
|
4791
|
-
/** The discriminator possible values: simple_qna, traces, task_generation, tool_use */
|
|
4813
|
+
/** The discriminator possible values: simple_qna, traces, task_generation, simulation_seed, tool_use */
|
|
4792
4814
|
type: DataGenerationJobType;
|
|
4793
4815
|
/** Maximum number of samples to generate. */
|
|
4794
4816
|
max_samples: number;
|
|
@@ -4800,11 +4822,11 @@ export interface DataGenerationJobOptions {
|
|
|
4800
4822
|
export declare function dataGenerationJobOptionsSerializer(item: DataGenerationJobOptions): any;
|
|
4801
4823
|
export declare function dataGenerationJobOptionsDeserializer(item: any): DataGenerationJobOptions;
|
|
4802
4824
|
/** Alias for DataGenerationJobOptionsUnion */
|
|
4803
|
-
export type DataGenerationJobOptionsUnion = SimpleQnADataGenerationJobOptions | TracesDataGenerationJobOptions | TaskGenerationDataGenerationJobOptions | ToolUseFineTuningDataGenerationJobOptions | DataGenerationJobOptions;
|
|
4825
|
+
export type DataGenerationJobOptionsUnion = SimpleQnADataGenerationJobOptions | TracesDataGenerationJobOptions | TaskGenerationDataGenerationJobOptions | SimulationSeedDataGenerationJobOptions | ToolUseFineTuningDataGenerationJobOptions | DataGenerationJobOptions;
|
|
4804
4826
|
export declare function dataGenerationJobOptionsUnionSerializer(item: DataGenerationJobOptionsUnion): any;
|
|
4805
4827
|
export declare function dataGenerationJobOptionsUnionDeserializer(item: any): DataGenerationJobOptionsUnion;
|
|
4806
4828
|
/** The supported data generation job types. */
|
|
4807
|
-
export type DataGenerationJobType = "simple_qna" | "traces" | "tool_use" | "task_generation";
|
|
4829
|
+
export type DataGenerationJobType = "simple_qna" | "traces" | "tool_use" | "task_generation" | "simulation_seed";
|
|
4808
4830
|
/** LLM model options for data generation jobs. */
|
|
4809
4831
|
export interface DataGenerationModelOptions {
|
|
4810
4832
|
/** Base model name used to generate data. */
|
|
@@ -4827,12 +4849,21 @@ export type SimpleQnAFineTuningQuestionType = "short_answer" | "long_answer";
|
|
|
4827
4849
|
export interface TracesDataGenerationJobOptions extends DataGenerationJobOptions {
|
|
4828
4850
|
/** The data generation job type, which is Traces for this model. */
|
|
4829
4851
|
type: "traces";
|
|
4852
|
+
/** Whether to redact private content from traces. When omitted or set to true, private content is redacted. Set to false to opt out of redaction. */
|
|
4853
|
+
redact_private_content?: boolean;
|
|
4830
4854
|
}
|
|
4831
4855
|
export declare function tracesDataGenerationJobOptionsSerializer(item: TracesDataGenerationJobOptions): any;
|
|
4832
4856
|
export declare function tracesDataGenerationJobOptionsDeserializer(item: any): TracesDataGenerationJobOptions;
|
|
4833
|
-
/** The options for a
|
|
4857
|
+
/** The options for a simulation seed data generation job. Use with multiturn evaluation scenarios and with prompt, file, or agent sources. Generated dataset rows include fields such as `id`, `category`, `test_case_description`, and `desired_num_turns`. */
|
|
4858
|
+
export interface SimulationSeedDataGenerationJobOptions extends DataGenerationJobOptions {
|
|
4859
|
+
/** The data generation job type, which is SimulationSeed for this model. */
|
|
4860
|
+
type: "simulation_seed";
|
|
4861
|
+
}
|
|
4862
|
+
export declare function simulationSeedDataGenerationJobOptionsSerializer(item: SimulationSeedDataGenerationJobOptions): any;
|
|
4863
|
+
export declare function simulationSeedDataGenerationJobOptionsDeserializer(item: any): SimulationSeedDataGenerationJobOptions;
|
|
4864
|
+
/** @deprecated Use `SimulationSeedDataGenerationJobOptions` instead. */
|
|
4834
4865
|
export interface TaskGenerationDataGenerationJobOptions extends DataGenerationJobOptions {
|
|
4835
|
-
/** The data generation job type
|
|
4866
|
+
/** The data generation job type. */
|
|
4836
4867
|
type: "task_generation";
|
|
4837
4868
|
}
|
|
4838
4869
|
export declare function taskGenerationDataGenerationJobOptionsSerializer(item: TaskGenerationDataGenerationJobOptions): any;
|
|
@@ -4931,13 +4962,13 @@ export declare function _agentsPagedResultDataGenerationJobDeserializer(item: an
|
|
|
4931
4962
|
export declare function dataGenerationJobArraySerializer(result: Array<DataGenerationJob>): any[];
|
|
4932
4963
|
export declare function dataGenerationJobArrayDeserializer(result: Array<DataGenerationJob>): any[];
|
|
4933
4964
|
/** Agent optimization job resource — a long-running job that optimizes an agent's configuration (instructions, model, skills, tools) to maximize evaluation scores. On success, the result contains scored candidates. */
|
|
4934
|
-
export interface
|
|
4965
|
+
export interface AgentOptimizationJob {
|
|
4935
4966
|
/** Server-assigned unique identifier. */
|
|
4936
4967
|
readonly id: string;
|
|
4937
4968
|
/** Caller-supplied inputs. */
|
|
4938
|
-
inputs?:
|
|
4969
|
+
inputs?: AgentOptimizationJobInputs;
|
|
4939
4970
|
/** Result produced on success. */
|
|
4940
|
-
readonly result?:
|
|
4971
|
+
readonly result?: AgentOptimizationJobResult;
|
|
4941
4972
|
/** Current lifecycle status. */
|
|
4942
4973
|
readonly status: JobStatus;
|
|
4943
4974
|
/** Error details — populated only on failure. */
|
|
@@ -4947,63 +4978,63 @@ export interface OptimizationJob {
|
|
|
4947
4978
|
/** The timestamp when the job was last updated, represented in Unix time. */
|
|
4948
4979
|
readonly updated_at: Date;
|
|
4949
4980
|
/** Progress snapshot. May be present in terminal states reflecting last-known progress. */
|
|
4950
|
-
readonly progress?:
|
|
4981
|
+
readonly progress?: AgentOptimizationJobProgress;
|
|
4951
4982
|
/** Non-fatal warnings emitted at any point during optimization. */
|
|
4952
4983
|
readonly warnings?: string[];
|
|
4953
4984
|
}
|
|
4954
|
-
export declare function
|
|
4955
|
-
export declare function
|
|
4985
|
+
export declare function agentOptimizationJobSerializer(item: AgentOptimizationJob): any;
|
|
4986
|
+
export declare function agentOptimizationJobDeserializer(item: any): AgentOptimizationJob;
|
|
4956
4987
|
/** Caller-supplied inputs for an optimization job. */
|
|
4957
|
-
export interface
|
|
4988
|
+
export interface AgentOptimizationJobInputs {
|
|
4958
4989
|
/** The agent (and pinned version) being optimized. */
|
|
4959
|
-
agent:
|
|
4990
|
+
agent: OptimizedAgentIdentifier;
|
|
4960
4991
|
/** Training dataset — either inline items or a reference to a registered dataset. Required. */
|
|
4961
|
-
train_dataset:
|
|
4992
|
+
train_dataset: AgentOptimizationDatasetInputUnion;
|
|
4962
4993
|
/** Optional held-out validation dataset for measuring generalization of the final candidate. */
|
|
4963
|
-
validation_dataset?:
|
|
4994
|
+
validation_dataset?: AgentOptimizationDatasetInputUnion;
|
|
4964
4995
|
/** Job-level evaluators referenced by name and optional version. Required; at least one must be provided. */
|
|
4965
|
-
evaluators:
|
|
4996
|
+
evaluators: AgentOptimizationEvaluatorRef[];
|
|
4966
4997
|
/** Tuning knobs and run-mode. */
|
|
4967
|
-
options?:
|
|
4998
|
+
options?: AgentOptimizationOptions;
|
|
4968
4999
|
}
|
|
4969
|
-
export declare function
|
|
4970
|
-
export declare function
|
|
5000
|
+
export declare function agentOptimizationJobInputsSerializer(item: AgentOptimizationJobInputs): any;
|
|
5001
|
+
export declare function agentOptimizationJobInputsDeserializer(item: any): AgentOptimizationJobInputs;
|
|
4971
5002
|
/** Identifies the registered Foundry agent to optimize (request-only). Skills, tools, and system_prompt are specified in options.optimization_config. */
|
|
4972
|
-
export interface
|
|
5003
|
+
export interface OptimizedAgentIdentifier {
|
|
4973
5004
|
/** Registered Foundry agent name (required). */
|
|
4974
5005
|
agent_name: string;
|
|
4975
5006
|
/** Pinned agent version. Defaults to latest if omitted. */
|
|
4976
5007
|
agent_version?: string;
|
|
4977
5008
|
}
|
|
4978
|
-
export declare function
|
|
4979
|
-
export declare function
|
|
5009
|
+
export declare function optimizedAgentIdentifierSerializer(item: OptimizedAgentIdentifier): any;
|
|
5010
|
+
export declare function optimizedAgentIdentifierDeserializer(item: any): OptimizedAgentIdentifier;
|
|
4980
5011
|
/** Base discriminated model for dataset input. Either inline items or a registered reference. */
|
|
4981
|
-
export interface
|
|
5012
|
+
export interface AgentOptimizationDatasetInput {
|
|
4982
5013
|
/** Dataset input type discriminator. */
|
|
4983
5014
|
/** The discriminator possible values: inline, reference */
|
|
4984
|
-
type:
|
|
4985
|
-
}
|
|
4986
|
-
export declare function
|
|
4987
|
-
export declare function
|
|
4988
|
-
/** Alias for
|
|
4989
|
-
export type
|
|
4990
|
-
export declare function
|
|
4991
|
-
export declare function
|
|
5015
|
+
type: AgentOptimizationDatasetInputType;
|
|
5016
|
+
}
|
|
5017
|
+
export declare function agentOptimizationDatasetInputSerializer(item: AgentOptimizationDatasetInput): any;
|
|
5018
|
+
export declare function agentOptimizationDatasetInputDeserializer(item: any): AgentOptimizationDatasetInput;
|
|
5019
|
+
/** Alias for AgentOptimizationDatasetInputUnion */
|
|
5020
|
+
export type AgentOptimizationDatasetInputUnion = AgentOptimizationInlineDatasetInput | AgentOptimizationReferenceDatasetInput | AgentOptimizationDatasetInput;
|
|
5021
|
+
export declare function agentOptimizationDatasetInputUnionSerializer(item: AgentOptimizationDatasetInputUnion): any;
|
|
5022
|
+
export declare function agentOptimizationDatasetInputUnionDeserializer(item: any): AgentOptimizationDatasetInputUnion;
|
|
4992
5023
|
/** Discriminator values for the dataset input union. */
|
|
4993
|
-
export type
|
|
5024
|
+
export type AgentOptimizationDatasetInputType = "inline" | "reference";
|
|
4994
5025
|
/** Inline dataset — items supplied directly in the request body. */
|
|
4995
|
-
export interface
|
|
5026
|
+
export interface AgentOptimizationInlineDatasetInput extends AgentOptimizationDatasetInput {
|
|
4996
5027
|
/** Dataset input type discriminator. */
|
|
4997
5028
|
type: "inline";
|
|
4998
5029
|
/** Dataset items. */
|
|
4999
|
-
items:
|
|
5030
|
+
items: AgentOptimizationDatasetItem[];
|
|
5000
5031
|
}
|
|
5001
|
-
export declare function
|
|
5002
|
-
export declare function
|
|
5003
|
-
export declare function
|
|
5004
|
-
export declare function
|
|
5032
|
+
export declare function agentOptimizationInlineDatasetInputSerializer(item: AgentOptimizationInlineDatasetInput): any;
|
|
5033
|
+
export declare function agentOptimizationInlineDatasetInputDeserializer(item: any): AgentOptimizationInlineDatasetInput;
|
|
5034
|
+
export declare function agentOptimizationDatasetItemArraySerializer(result: Array<AgentOptimizationDatasetItem>): any[];
|
|
5035
|
+
export declare function agentOptimizationDatasetItemArrayDeserializer(result: Array<AgentOptimizationDatasetItem>): any[];
|
|
5005
5036
|
/** A single item in an inline dataset. */
|
|
5006
|
-
export interface
|
|
5037
|
+
export interface AgentOptimizationDatasetItem {
|
|
5007
5038
|
/** The user query / prompt. */
|
|
5008
5039
|
query?: string;
|
|
5009
5040
|
/** Expected ground truth answer. */
|
|
@@ -5011,23 +5042,23 @@ export interface OptimizationDatasetItem {
|
|
|
5011
5042
|
/** Desired number of conversation turns for simulation mode (1-20). */
|
|
5012
5043
|
desired_num_turns?: number;
|
|
5013
5044
|
/** Per-item evaluation criteria. */
|
|
5014
|
-
criteria?:
|
|
5045
|
+
criteria?: AgentOptimizationDatasetCriterion[];
|
|
5015
5046
|
}
|
|
5016
|
-
export declare function
|
|
5017
|
-
export declare function
|
|
5018
|
-
export declare function
|
|
5019
|
-
export declare function
|
|
5047
|
+
export declare function agentOptimizationDatasetItemSerializer(item: AgentOptimizationDatasetItem): any;
|
|
5048
|
+
export declare function agentOptimizationDatasetItemDeserializer(item: any): AgentOptimizationDatasetItem;
|
|
5049
|
+
export declare function agentOptimizationDatasetCriterionArraySerializer(result: Array<AgentOptimizationDatasetCriterion>): any[];
|
|
5050
|
+
export declare function agentOptimizationDatasetCriterionArrayDeserializer(result: Array<AgentOptimizationDatasetCriterion>): any[];
|
|
5020
5051
|
/** Evaluation criterion: a name + instruction pair used for per-item scoring. */
|
|
5021
|
-
export interface
|
|
5052
|
+
export interface AgentOptimizationDatasetCriterion {
|
|
5022
5053
|
/** Criterion name. */
|
|
5023
5054
|
name: string;
|
|
5024
5055
|
/** Criterion instruction / description. */
|
|
5025
5056
|
instruction: string;
|
|
5026
5057
|
}
|
|
5027
|
-
export declare function
|
|
5028
|
-
export declare function
|
|
5058
|
+
export declare function agentOptimizationDatasetCriterionSerializer(item: AgentOptimizationDatasetCriterion): any;
|
|
5059
|
+
export declare function agentOptimizationDatasetCriterionDeserializer(item: any): AgentOptimizationDatasetCriterion;
|
|
5029
5060
|
/** Reference to a registered Foundry dataset. */
|
|
5030
|
-
export interface
|
|
5061
|
+
export interface AgentOptimizationReferenceDatasetInput extends AgentOptimizationDatasetInput {
|
|
5031
5062
|
/** Dataset input type discriminator. */
|
|
5032
5063
|
type: "reference";
|
|
5033
5064
|
/** Registered dataset name. */
|
|
@@ -5035,21 +5066,21 @@ export interface OptimizationReferenceDatasetInput extends OptimizationDatasetIn
|
|
|
5035
5066
|
/** Dataset version. If not specified, the latest version is used. */
|
|
5036
5067
|
version?: string;
|
|
5037
5068
|
}
|
|
5038
|
-
export declare function
|
|
5039
|
-
export declare function
|
|
5040
|
-
export declare function
|
|
5041
|
-
export declare function
|
|
5069
|
+
export declare function agentOptimizationReferenceDatasetInputSerializer(item: AgentOptimizationReferenceDatasetInput): any;
|
|
5070
|
+
export declare function agentOptimizationReferenceDatasetInputDeserializer(item: any): AgentOptimizationReferenceDatasetInput;
|
|
5071
|
+
export declare function agentOptimizationEvaluatorRefArraySerializer(result: Array<AgentOptimizationEvaluatorRef>): any[];
|
|
5072
|
+
export declare function agentOptimizationEvaluatorRefArrayDeserializer(result: Array<AgentOptimizationEvaluatorRef>): any[];
|
|
5042
5073
|
/** Reference to a named evaluator, optionally pinned to a version. */
|
|
5043
|
-
export interface
|
|
5074
|
+
export interface AgentOptimizationEvaluatorRef {
|
|
5044
5075
|
/** Evaluator name. */
|
|
5045
5076
|
name: string;
|
|
5046
5077
|
/** Evaluator version. If not specified, the latest version is used. */
|
|
5047
5078
|
version?: string;
|
|
5048
5079
|
}
|
|
5049
|
-
export declare function
|
|
5050
|
-
export declare function
|
|
5080
|
+
export declare function agentOptimizationEvaluatorRefSerializer(item: AgentOptimizationEvaluatorRef): any;
|
|
5081
|
+
export declare function agentOptimizationEvaluatorRefDeserializer(item: any): AgentOptimizationEvaluatorRef;
|
|
5051
5082
|
/** Tuning knobs and run-mode for an optimization job. */
|
|
5052
|
-
export interface
|
|
5083
|
+
export interface AgentOptimizationOptions {
|
|
5053
5084
|
/** Maximum number of optimization candidates to generate. Must be >= 1. Default: 5. */
|
|
5054
5085
|
max_candidates?: number;
|
|
5055
5086
|
/** Per-target-attribute configuration overrides. Contains skills, tools, system_prompt for the agent, plus model space for model optimization. */
|
|
@@ -5063,21 +5094,21 @@ export interface OptimizationOptions {
|
|
|
5063
5094
|
/** Maximum number of consecutive reflective minibatch rejections before stopping early. A 'stall' occurs when the optimizer proposes a prompt change, evaluates it on a small subset, and the score does not improve — so no full validation-set evaluation is triggered. The counter resets whenever a minibatch passes and its full-validation score beats the current best. Only a sustained plateau of `max_stalls` consecutive minibatch failures triggers the stop. The service defaults to 5 if a value is not specified by the caller. Must be >= 1 when set. */
|
|
5064
5095
|
max_stalls?: number;
|
|
5065
5096
|
}
|
|
5066
|
-
export declare function
|
|
5067
|
-
export declare function
|
|
5097
|
+
export declare function agentOptimizationOptionsSerializer(item: AgentOptimizationOptions): any;
|
|
5098
|
+
export declare function agentOptimizationOptionsDeserializer(item: any): AgentOptimizationOptions;
|
|
5068
5099
|
/** Terminal-state result body. Populated when status is succeeded or failed. */
|
|
5069
|
-
export interface
|
|
5100
|
+
export interface AgentOptimizationJobResult {
|
|
5070
5101
|
/** Candidate ID of the original (un-optimized) baseline evaluation. */
|
|
5071
5102
|
baseline?: string;
|
|
5072
5103
|
/** Candidate ID of the highest-scoring candidate found during optimization. */
|
|
5073
5104
|
best?: string;
|
|
5074
5105
|
/** All evaluated candidates including baseline. */
|
|
5075
|
-
candidates?:
|
|
5106
|
+
candidates?: AgentOptimizationCandidate[];
|
|
5076
5107
|
}
|
|
5077
|
-
export declare function
|
|
5078
|
-
export declare function
|
|
5108
|
+
export declare function agentOptimizationJobResultDeserializer(item: any): AgentOptimizationJobResult;
|
|
5109
|
+
export declare function agentOptimizationCandidateArrayDeserializer(result: Array<AgentOptimizationCandidate>): any[];
|
|
5079
5110
|
/** Aggregated evaluation result for a single candidate agent configuration across all tasks. */
|
|
5080
|
-
export interface
|
|
5111
|
+
export interface AgentOptimizationCandidate {
|
|
5081
5112
|
/** Server-assigned candidate identifier. Use with GET /candidates/{id} sub-endpoints. */
|
|
5082
5113
|
candidate_id?: string;
|
|
5083
5114
|
/** Display name of the candidate (e.g., 'baseline', 'instruction-v2'). */
|
|
@@ -5095,7 +5126,7 @@ export interface OptimizationCandidate {
|
|
|
5095
5126
|
/** Promotion metadata. Null if the candidate has not been promoted. */
|
|
5096
5127
|
promotion?: PromotionInfo;
|
|
5097
5128
|
}
|
|
5098
|
-
export declare function
|
|
5129
|
+
export declare function agentOptimizationCandidateDeserializer(item: any): AgentOptimizationCandidate;
|
|
5099
5130
|
/** Promotion metadata recorded when a candidate is deployed to a Foundry agent. */
|
|
5100
5131
|
export interface PromotionInfo {
|
|
5101
5132
|
/** Timestamp when promotion occurred, represented in Unix time. */
|
|
@@ -5107,7 +5138,7 @@ export interface PromotionInfo {
|
|
|
5107
5138
|
}
|
|
5108
5139
|
export declare function promotionInfoDeserializer(item: any): PromotionInfo;
|
|
5109
5140
|
/** In-flight progress; only populated while status is queued or in_progress. */
|
|
5110
|
-
export interface
|
|
5141
|
+
export interface AgentOptimizationJobProgress {
|
|
5111
5142
|
/** Number of candidates whose evaluation has completed so far. */
|
|
5112
5143
|
candidates_completed: number;
|
|
5113
5144
|
/** Best score observed so far across all candidates. */
|
|
@@ -5115,11 +5146,11 @@ export interface OptimizationJobProgress {
|
|
|
5115
5146
|
/** Wall-clock time elapsed in seconds since the job began executing. */
|
|
5116
5147
|
elapsed_seconds: number;
|
|
5117
5148
|
}
|
|
5118
|
-
export declare function
|
|
5149
|
+
export declare function agentOptimizationJobProgressDeserializer(item: any): AgentOptimizationJobProgress;
|
|
5119
5150
|
/** The response data for a requested list of items. */
|
|
5120
|
-
export interface
|
|
5151
|
+
export interface _AgentsPagedResultAgentOptimizationJobListItem {
|
|
5121
5152
|
/** The requested list of items. */
|
|
5122
|
-
data:
|
|
5153
|
+
data: AgentOptimizationJobListItem[];
|
|
5123
5154
|
/** The first ID represented in this list. */
|
|
5124
5155
|
first_id?: string;
|
|
5125
5156
|
/** The last ID represented in this list. */
|
|
@@ -5127,10 +5158,10 @@ export interface _AgentsPagedResultOptimizationJobListItem {
|
|
|
5127
5158
|
/** A value indicating whether there are additional values available not captured in this list. */
|
|
5128
5159
|
has_more: boolean;
|
|
5129
5160
|
}
|
|
5130
|
-
export declare function
|
|
5131
|
-
export declare function
|
|
5161
|
+
export declare function _agentsPagedResultAgentOptimizationJobListItemDeserializer(item: any): _AgentsPagedResultAgentOptimizationJobListItem;
|
|
5162
|
+
export declare function agentOptimizationJobListItemArrayDeserializer(result: Array<AgentOptimizationJobListItem>): any[];
|
|
5132
5163
|
/** Slim job representation returned by the LIST endpoint. */
|
|
5133
|
-
export interface
|
|
5164
|
+
export interface AgentOptimizationJobListItem {
|
|
5134
5165
|
/** Server-assigned unique identifier. */
|
|
5135
5166
|
readonly id: string;
|
|
5136
5167
|
/** Current lifecycle status. */
|
|
@@ -5142,11 +5173,43 @@ export interface OptimizationJobListItem {
|
|
|
5142
5173
|
/** The timestamp when the job was last updated, represented in Unix time. */
|
|
5143
5174
|
readonly updated_at: Date;
|
|
5144
5175
|
/** Progress snapshot. May be present in terminal states reflecting last-known progress. */
|
|
5145
|
-
readonly progress?:
|
|
5176
|
+
readonly progress?: AgentOptimizationJobProgress;
|
|
5146
5177
|
/** The agent targeted by this optimization job. */
|
|
5147
|
-
readonly agent?:
|
|
5148
|
-
}
|
|
5149
|
-
|
|
5178
|
+
readonly agent?: OptimizedAgentIdentifier;
|
|
5179
|
+
}
|
|
5180
|
+
/** @deprecated Use `AgentOptimizationJob` instead. */
|
|
5181
|
+
export type OptimizationJob = AgentOptimizationJob;
|
|
5182
|
+
/** @deprecated Use `AgentOptimizationJobInputs` instead. */
|
|
5183
|
+
export type OptimizationJobInputs = AgentOptimizationJobInputs;
|
|
5184
|
+
/** @deprecated Use `OptimizedAgentIdentifier` instead. */
|
|
5185
|
+
export type OptimizationAgentIdentifier = OptimizedAgentIdentifier;
|
|
5186
|
+
/** @deprecated Use `AgentOptimizationDatasetInput` instead. */
|
|
5187
|
+
export type OptimizationDatasetInput = AgentOptimizationDatasetInput;
|
|
5188
|
+
/** @deprecated Use `AgentOptimizationDatasetInputUnion` instead. */
|
|
5189
|
+
export type OptimizationDatasetInputUnion = AgentOptimizationDatasetInputUnion;
|
|
5190
|
+
/** @deprecated Use `AgentOptimizationDatasetInputType` instead. */
|
|
5191
|
+
export type OptimizationDatasetInputType = AgentOptimizationDatasetInputType;
|
|
5192
|
+
/** @deprecated Use `AgentOptimizationInlineDatasetInput` instead. */
|
|
5193
|
+
export type OptimizationInlineDatasetInput = AgentOptimizationInlineDatasetInput;
|
|
5194
|
+
/** @deprecated Use `AgentOptimizationDatasetItem` instead. */
|
|
5195
|
+
export type OptimizationDatasetItem = AgentOptimizationDatasetItem;
|
|
5196
|
+
/** @deprecated Use `AgentOptimizationDatasetCriterion` instead. */
|
|
5197
|
+
export type OptimizationDatasetCriterion = AgentOptimizationDatasetCriterion;
|
|
5198
|
+
/** @deprecated Use `AgentOptimizationReferenceDatasetInput` instead. */
|
|
5199
|
+
export type OptimizationReferenceDatasetInput = AgentOptimizationReferenceDatasetInput;
|
|
5200
|
+
/** @deprecated Use `AgentOptimizationEvaluatorRef` instead. */
|
|
5201
|
+
export type OptimizationEvaluatorRef = AgentOptimizationEvaluatorRef;
|
|
5202
|
+
/** @deprecated Use `AgentOptimizationOptions` instead. */
|
|
5203
|
+
export type OptimizationOptions = AgentOptimizationOptions;
|
|
5204
|
+
/** @deprecated Use `AgentOptimizationJobResult` instead. */
|
|
5205
|
+
export type OptimizationJobResult = AgentOptimizationJobResult;
|
|
5206
|
+
/** @deprecated Use `AgentOptimizationCandidate` instead. */
|
|
5207
|
+
export type OptimizationCandidate = AgentOptimizationCandidate;
|
|
5208
|
+
/** @deprecated Use `AgentOptimizationJobProgress` instead. */
|
|
5209
|
+
export type OptimizationJobProgress = AgentOptimizationJobProgress;
|
|
5210
|
+
/** @deprecated Use `AgentOptimizationJobListItem` instead. */
|
|
5211
|
+
export type OptimizationJobListItem = AgentOptimizationJobListItem;
|
|
5212
|
+
export declare function agentOptimizationJobListItemDeserializer(item: any): AgentOptimizationJobListItem;
|
|
5150
5213
|
/** model interface UpdateToolboxRequest */
|
|
5151
5214
|
export interface UpdateToolboxRequest {
|
|
5152
5215
|
/** The name of the toolbox to update. */
|
|
@@ -5161,11 +5224,11 @@ export declare function _listVersionsRequestTypeSerializer(item: _ListVersionsRe
|
|
|
5161
5224
|
/** Type of AgentType */
|
|
5162
5225
|
export type AgentType = "agent" | "agent.version" | "agent.deleted" | "agent.version.deleted" | "agent.container";
|
|
5163
5226
|
/** Feature opt-in keys for agent definition operations supporting hosted or workflow agents. */
|
|
5164
|
-
export type AgentDefinitionOptInKeys = "WorkflowAgents=V1Preview" | "ExternalAgents=V1Preview" | "DraftAgents=V1Preview";
|
|
5227
|
+
export type AgentDefinitionOptInKeys = "WorkflowAgents=V1Preview" | "ExternalAgents=V1Preview" | "DraftAgents=V1Preview" | "VoiceAgents=V1Preview";
|
|
5165
5228
|
/** Type of PageOrder */
|
|
5166
5229
|
export type PageOrder = "asc" | "desc";
|
|
5167
5230
|
/** Type of FoundryFeaturesOptInKeys */
|
|
5168
|
-
export type FoundryFeaturesOptInKeys = "Evaluations=V1Preview" | "Schedules=V1Preview" | "RedTeams=V1Preview" | "Insights=V1Preview" | "MemoryStores=V1Preview" | "Routines=V1Preview" | "Skills=V1Preview" | "DataGenerationJobs=V1Preview" | "Models=V1Preview" | "AgentsOptimization=V2Preview";
|
|
5231
|
+
export type FoundryFeaturesOptInKeys = "Evaluations=V1Preview" | "Schedules=V1Preview" | "RedTeams=V1Preview" | "Insights=V1Preview" | "MemoryStores=V1Preview" | "Routines=V1Preview" | "Routines=V2Preview" | "Skills=V1Preview" | "DataGenerationJobs=V1Preview" | "Models=V1Preview" | "AgentsOptimization=V2Preview";
|
|
5169
5232
|
/** The type of pending upload. */
|
|
5170
5233
|
export type PendingUploadType = "None" | "BlobReference" | "TemporaryBlobReference";
|
|
5171
5234
|
/** Type of MemoryStoreType */
|
|
@@ -5239,4 +5302,24 @@ export type BetaSkillsDownloadResponse = {
|
|
|
5239
5302
|
*/
|
|
5240
5303
|
readableStreamBody?: NodeReadableStream;
|
|
5241
5304
|
};
|
|
5305
|
+
/** Type of CallableToolAllowedCaller */
|
|
5306
|
+
export type CallableToolAllowedCaller = "direct" | "programmatic";
|
|
5307
|
+
/** model interface ProgrammaticToolCallingParam */
|
|
5308
|
+
export interface ProgrammaticToolCallingParam extends Tool {
|
|
5309
|
+
/** The type of the tool. Always `programmatic_tool_calling`. */
|
|
5310
|
+
type: "programmatic_tool_calling";
|
|
5311
|
+
}
|
|
5312
|
+
/** model interface SpecificProgrammaticToolCallingParam */
|
|
5313
|
+
export interface SpecificProgrammaticToolCallingParam extends ToolChoiceParam {
|
|
5314
|
+
/** The tool to call. Always `programmatic_tool_calling`. */
|
|
5315
|
+
type: "programmatic_tool_calling";
|
|
5316
|
+
}
|
|
5317
|
+
/** Alias for ReasoningModeEnum */
|
|
5318
|
+
export type ReasoningModeEnum = string | "standard" | "pro";
|
|
5319
|
+
export declare function programmaticToolCallingParamDeserializer(item: any): ProgrammaticToolCallingParam;
|
|
5320
|
+
export declare function programmaticToolCallingParamSerializer(item: ProgrammaticToolCallingParam): any;
|
|
5321
|
+
export declare function reasoningModeEnumDeserializer(item: any): ReasoningModeEnum;
|
|
5322
|
+
export declare function reasoningModeEnumSerializer(item: ReasoningModeEnum): any;
|
|
5323
|
+
export declare function specificProgrammaticToolCallingParamDeserializer(item: any): SpecificProgrammaticToolCallingParam;
|
|
5324
|
+
export declare function specificProgrammaticToolCallingParamSerializer(item: SpecificProgrammaticToolCallingParam): any;
|
|
5242
5325
|
//# sourceMappingURL=models.d.ts.map
|