@azure/ai-agents 1.1.0-beta.3 → 1.1.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 +0 -76
- package/dist/browser/api/agentsContext.js +2 -2
- package/dist/browser/api/agentsContext.js.map +1 -1
- package/dist/browser/api/runs/operations.d.ts.map +1 -1
- package/dist/browser/api/runs/operations.js +1 -4
- package/dist/browser/api/runs/operations.js.map +1 -1
- package/dist/browser/api/runs/options.d.ts +1 -5
- package/dist/browser/api/runs/options.d.ts.map +1 -1
- package/dist/browser/api/runs/options.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.d.ts.map +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +1 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +0 -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 +9 -257
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +0 -326
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/utils/utils.d.ts +1 -61
- package/dist/browser/utils/utils.d.ts.map +1 -1
- package/dist/browser/utils/utils.js +0 -90
- package/dist/browser/utils/utils.js.map +1 -1
- package/dist/commonjs/api/agentsContext.js +2 -2
- package/dist/commonjs/api/agentsContext.js.map +1 -1
- package/dist/commonjs/api/runs/operations.d.ts.map +1 -1
- package/dist/commonjs/api/runs/operations.js +0 -3
- package/dist/commonjs/api/runs/operations.js.map +1 -1
- package/dist/commonjs/api/runs/options.d.ts +1 -5
- package/dist/commonjs/api/runs/options.d.ts.map +1 -1
- package/dist/commonjs/api/runs/options.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -3
- package/dist/commonjs/index.js.map +1 -1
- 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 +9 -257
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +0 -371
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/utils/utils.d.ts +1 -61
- package/dist/commonjs/utils/utils.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.js +0 -90
- package/dist/commonjs/utils/utils.js.map +1 -1
- package/dist/esm/api/agentsContext.js +2 -2
- package/dist/esm/api/agentsContext.js.map +1 -1
- package/dist/esm/api/runs/operations.d.ts.map +1 -1
- package/dist/esm/api/runs/operations.js +1 -4
- package/dist/esm/api/runs/operations.js.map +1 -1
- package/dist/esm/api/runs/options.d.ts +1 -5
- package/dist/esm/api/runs/options.d.ts.map +1 -1
- package/dist/esm/api/runs/options.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +1 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -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 +9 -257
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +0 -326
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/utils/utils.d.ts +1 -61
- package/dist/esm/utils/utils.d.ts.map +1 -1
- package/dist/esm/utils/utils.js +0 -90
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/react-native/api/agentsContext.js +2 -2
- package/dist/react-native/api/agentsContext.js.map +1 -1
- package/dist/react-native/api/runs/operations.d.ts.map +1 -1
- package/dist/react-native/api/runs/operations.js +1 -4
- package/dist/react-native/api/runs/operations.js.map +1 -1
- package/dist/react-native/api/runs/options.d.ts +1 -5
- package/dist/react-native/api/runs/options.d.ts.map +1 -1
- package/dist/react-native/api/runs/options.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.d.ts.map +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 +1 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +0 -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 +9 -257
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +0 -326
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/utils/utils.d.ts +1 -61
- package/dist/react-native/utils/utils.d.ts.map +1 -1
- package/dist/react-native/utils/utils.js +0 -90
- package/dist/react-native/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/utils/MCPTool.d.ts +0 -78
- package/dist/browser/utils/MCPTool.d.ts.map +0 -1
- package/dist/browser/utils/MCPTool.js +0 -133
- package/dist/browser/utils/MCPTool.js.map +0 -1
- package/dist/commonjs/utils/MCPTool.d.ts +0 -78
- package/dist/commonjs/utils/MCPTool.d.ts.map +0 -1
- package/dist/commonjs/utils/MCPTool.js +0 -137
- package/dist/commonjs/utils/MCPTool.js.map +0 -1
- package/dist/esm/utils/MCPTool.d.ts +0 -78
- package/dist/esm/utils/MCPTool.d.ts.map +0 -1
- package/dist/esm/utils/MCPTool.js +0 -133
- package/dist/esm/utils/MCPTool.js.map +0 -1
- package/dist/react-native/utils/MCPTool.d.ts +0 -78
- package/dist/react-native/utils/MCPTool.d.ts.map +0 -1
- package/dist/react-native/utils/MCPTool.js +0 -133
- package/dist/react-native/utils/MCPTool.js.map +0 -1
package/README.md
CHANGED
|
@@ -27,8 +27,6 @@ Use the AI Agents client library to:
|
|
|
27
27
|
- [File Search](#create-agent-with-file-search)
|
|
28
28
|
- [Code interpreter](#create-agent-with-code-interpreter)
|
|
29
29
|
- [Bing grounding](#create-agent-with-bing-grounding)
|
|
30
|
-
- [Deep research](#create-agent-with-deep-research)
|
|
31
|
-
- [MCP tool](#create-agent-with-mcp-tool)
|
|
32
30
|
- [Azure AI Search](#create-agent-with-azure-ai-search)
|
|
33
31
|
- [Function call](#create-agent-with-function-call)
|
|
34
32
|
- [Create thread](#create-thread) with
|
|
@@ -253,80 +251,6 @@ const agent = await client.createAgent("gpt-4o", {
|
|
|
253
251
|
});
|
|
254
252
|
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
255
253
|
```
|
|
256
|
-
#### Create Agent with Deep Research
|
|
257
|
-
|
|
258
|
-
To enable your Agent to do a detailed research of a topic, use the `DeepResearchTool` along with a connection to a Bing Grounding resource.
|
|
259
|
-
This scenario requires you to specify two model deployments. One is the generic chat model that does arbitration, and is
|
|
260
|
-
specified as usual when you call the `createAgent` method. The other is the Deep Research model, which is specified
|
|
261
|
-
when you define the `DeepResearchTool`.
|
|
262
|
-
|
|
263
|
-
Here is an example to integrate Deep ReSearch:
|
|
264
|
-
|
|
265
|
-
```ts snippet:DeepResearch
|
|
266
|
-
import { DeepResearchToolDefinition } from "@azure/ai-agents";
|
|
267
|
-
|
|
268
|
-
const bingConnectionId = process.env["AZURE_BING_CONNECTION_ID"] || "<connection-name>";
|
|
269
|
-
const deepResearchModelDeploymentName =
|
|
270
|
-
process.env["DEEP_RESEARCH_MODEL_DEPLOYMENT_NAME"] || "gpt-4o";
|
|
271
|
-
const modelDeploymentName = process.env["MODEL_DEPLOYMENT_NAME"] || "gpt-4o";
|
|
272
|
-
// Create Deep Research tool definition
|
|
273
|
-
const deepResearchTool: DeepResearchToolDefinition = {
|
|
274
|
-
type: "deep_research",
|
|
275
|
-
deepResearch: {
|
|
276
|
-
deepResearchModel: deepResearchModelDeploymentName,
|
|
277
|
-
deepResearchBingGroundingConnections: [
|
|
278
|
-
{
|
|
279
|
-
connectionId: bingConnectionId,
|
|
280
|
-
},
|
|
281
|
-
],
|
|
282
|
-
},
|
|
283
|
-
};
|
|
284
|
-
// Create agent with the Deep Research tool
|
|
285
|
-
const agent = await client.createAgent(modelDeploymentName, {
|
|
286
|
-
name: "my-agent",
|
|
287
|
-
instructions: "You are a helpful Agent that assists in researching scientific topics.",
|
|
288
|
-
tools: [deepResearchTool],
|
|
289
|
-
});
|
|
290
|
-
console.log(`Created agent, ID: ${agent.id}`);
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
#### Create Agent with MCP tool
|
|
294
|
-
|
|
295
|
-
To enable your Agent to use the MCP tool, you can create an instance of the MCP tool and pass it to the agent during creation.
|
|
296
|
-
Here is an example to integrate MCP tool:
|
|
297
|
-
|
|
298
|
-
```ts snippet:MCPTool
|
|
299
|
-
import { AgentsClient, ToolUtility } from "@azure/ai-agents";
|
|
300
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
301
|
-
|
|
302
|
-
// Get MCP server configuration from environment variables
|
|
303
|
-
const mcpServerUrl =
|
|
304
|
-
process.env["MCP_SERVER_URL"] || "https://gitmcp.io/Azure/azure-rest-api-specs";
|
|
305
|
-
const mcpServerLabel = process.env["MCP_SERVER_LABEL"] || "github";
|
|
306
|
-
// Create an Azure AI Client
|
|
307
|
-
const client = new AgentsClient(projectEndpoint, new DefaultAzureCredential());
|
|
308
|
-
// Initialize agent MCP tool
|
|
309
|
-
const mcpTool = ToolUtility.createMCPTool({
|
|
310
|
-
serverLabel: mcpServerLabel,
|
|
311
|
-
serverUrl: mcpServerUrl,
|
|
312
|
-
allowedTools: [], // Optional: specify allowed tools
|
|
313
|
-
});
|
|
314
|
-
// You can also add or remove allowed tools dynamically
|
|
315
|
-
const searchApiCode = "search_azure_rest_api_code";
|
|
316
|
-
mcpTool.allowTool(searchApiCode);
|
|
317
|
-
console.log(`Allowed tools: ${mcpTool.allowedTools}`);
|
|
318
|
-
// Create agent with MCP tool
|
|
319
|
-
const agent = await client.createAgent(modelDeploymentName, {
|
|
320
|
-
name: "my-mcp-agent",
|
|
321
|
-
instructions:
|
|
322
|
-
"You are a helpful agent that can use MCP tools to assist users. Use the available MCP tools to answer questions and perform tasks.",
|
|
323
|
-
tools: mcpTool.definitions,
|
|
324
|
-
});
|
|
325
|
-
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
254
|
|
|
331
255
|
#### Create Agent with Azure AI Search
|
|
332
256
|
|
|
@@ -5,7 +5,7 @@ import { getClient } from "@azure-rest/core-client";
|
|
|
5
5
|
export function createAgents(endpointParam, credential, options = {}) {
|
|
6
6
|
const endpointUrl = options.endpoint ?? options.baseUrl ?? String(endpointParam);
|
|
7
7
|
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
8
|
-
const userAgentInfo = `azsdk-js-ai-agents/1.1.0
|
|
8
|
+
const userAgentInfo = `azsdk-js-ai-agents/1.1.0`;
|
|
9
9
|
const userAgentPrefix = prefixFromOptions
|
|
10
10
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
11
11
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
@@ -19,7 +19,7 @@ export function createAgents(endpointParam, credential, options = {}) {
|
|
|
19
19
|
};
|
|
20
20
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
21
21
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
22
|
-
const apiVersion = options.apiVersion ?? "
|
|
22
|
+
const apiVersion = options.apiVersion ?? "v1";
|
|
23
23
|
clientContext.pipeline.addPolicy({
|
|
24
24
|
name: "ClientApiVersionPolicy",
|
|
25
25
|
sendRequest: (req, next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsContext.js","sourceRoot":"","sources":["../../../src/api/agentsContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAgB3E,MAAM,UAAU,YAAY,CAC1B,aAAqB,EACrB,UAA2B,EAC3B,UAAsC,EAAE;IAExC,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;IACjF,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"agentsContext.js","sourceRoot":"","sources":["../../../src/api/agentsContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAgB3E,MAAM,UAAU,YAAY,CAC1B,aAAqB,EACrB,UAA2B,EAC3B,UAAsC,EAAE;IAExC,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;IACjF,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,0BAA0B,CAAC;IACjD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE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ed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface AgentsContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n}\n\n/** Optional parameters for the client. */\nexport interface AgentsClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createAgents(\n endpointParam: string,\n credential: TokenCredential,\n options: AgentsClientOptionalParams = {},\n): AgentsContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? String(endpointParam);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-ai-agents/1.1.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://ai.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"v1\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return { ...clientContext, apiVersion } as AgentsContext;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/runs/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/runs/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAajG,OAAO,KAAK,EACV,2BAA2B,EAC3B,wCAAwC,EACxC,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAGxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,KAAK,EAAE,gBAAgB,EAA2B,MAAM,iCAAiC,CAAC;AAEjG,OAAO,KAAK,EAAE,cAAc,EAAmB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGnF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,2BAAoD,GAC5D,gBAAgB,CAmBlB;AAED,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,SAAS,CAAC,CAS7F;AAED,8CAA8C;AAC9C,wBAAsB,SAAS,CAC7B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,2BAAoD,GAC5D,OAAO,CA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MIT License.
|
|
3
|
-
import { toolResourcesSerializer, toolDefinitionUnionArraySerializer, agentsResponseFormatOptionSerializer, agentV1ErrorDeserializer, threadMessageOptionsArraySerializer, truncationObjectSerializer, agentsToolChoiceOptionSerializer, threadRunDeserializer, _agentsPagedResultThreadRunDeserializer, toolOutputArraySerializer,
|
|
3
|
+
import { toolResourcesSerializer, toolDefinitionUnionArraySerializer, agentsResponseFormatOptionSerializer, agentV1ErrorDeserializer, threadMessageOptionsArraySerializer, truncationObjectSerializer, agentsToolChoiceOptionSerializer, threadRunDeserializer, _agentsPagedResultThreadRunDeserializer, toolOutputArraySerializer, } from "../../models/models.js";
|
|
4
4
|
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
6
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
@@ -53,9 +53,6 @@ export function _submitToolOutputsToRunSend(context, threadId, runId, toolOutput
|
|
|
53
53
|
},
|
|
54
54
|
body: {
|
|
55
55
|
tool_outputs: toolOutputs.length > 0 ? toolOutputArraySerializer(toolOutputs) : undefined,
|
|
56
|
-
tool_approvals: !options?.toolApprovals
|
|
57
|
-
? options?.toolApprovals
|
|
58
|
-
: toolApprovalArraySerializer(options?.toolApprovals),
|
|
59
56
|
stream: options?.stream ?? false,
|
|
60
57
|
},
|
|
61
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/runs/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,uBAAuB,EACvB,kCAAkC,EAClC,oCAAoC,EACpC,wBAAwB,EACxB,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,qBAAqB,EACrB,uCAAuC,EACvC,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE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O,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC3D,CAAC;QACD,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,CAAC,MAAiB,EAAE,EAAE;YACvC,OAAO,qBAAqB,CAAC,MAAM,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS;gBACnE,CAAC,CAAC,IAAI,KAAK,CAAC,qBAAqB,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;gBAC5D,CAAC,CAAC,SAAS,CAAC;QAChB,CAAC;QACD,YAAY,EAAE,OAAO,CAAC,cAAc,EAAE,YAAY;KACnD,CAAC,CAAC;AACL,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAiB;IAC9C,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,QAAQ;YACX,OAAO,YAAY,CAAC;QACtB,KAAK,aAAa;YAChB,OAAO,SAAS,CAAC;QACnB,KAAK,iBAAiB;YACpB,OAAO,SAAS,CAAC;QACnB,KAAK,WAAW;YACd,OAAO,WAAW,CAAC;QACrB,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS,CAAC;QACf;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AgentsContext as Client } from \"../index.js\";\nimport type { ThreadRun, _AgentsPagedResultThreadRun, ToolOutput } from \"../../models/models.js\";\nimport {\n toolResourcesSerializer,\n toolDefinitionUnionArraySerializer,\n agentsResponseFormatOptionSerializer,\n agentV1ErrorDeserializer,\n threadMessageOptionsArraySerializer,\n truncationObjectSerializer,\n agentsToolChoiceOptionSerializer,\n threadRunDeserializer,\n _agentsPagedResultThreadRunDeserializer,\n toolOutputArraySerializer,\n toolApprovalArraySerializer,\n} from \"../../models/models.js\";\nimport type {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"./options.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { AgentRunResponse, AgentEventMessageStream } from \"../../models/streamingModels.js\";\nimport { createRunStreaming, submitToolOutputsToRunStreaming } from \"../operations.js\";\nimport type { OperationState, OperationStatus, PollerLike } from \"@azure/core-lro\";\nimport { createPoller } from \"../poller.js\";\n\nexport function _cancelRunSend(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsCancelRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}/cancel{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Cancels a run of an in‐progress thread. */\nexport async function cancelRun(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsCancelRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _cancelRunSend(context, threadId, runId, options);\n return _cancelRunDeserialize(result);\n}\n\nexport function _submitToolOutputsToRunSend(\n context: Client,\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options: RunsSubmitToolOutputsToRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}/submit_tool_outputs{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n tool_outputs: toolOutputs.length > 0 ? toolOutputArraySerializer(toolOutputs) : undefined,\n tool_approvals: !options?.toolApprovals\n ? options?.toolApprovals\n : toolApprovalArraySerializer(options?.toolApprovals),\n stream: options?.stream ?? false,\n },\n });\n}\n\nexport async function _submitToolOutputsToRunDeserialize(\n result: PathUncheckedResponse,\n): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Submits outputs from tools as requested by tool calls in a run. */\nexport function submitToolOutputsToRun(\n context: Client,\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options: RunsSubmitToolOutputsToRunOptionalParams = { requestOptions: {} },\n): AgentRunResponse {\n async function executeSubmitToolOutputsToRun(): Promise<ThreadRun> {\n const result = await _submitToolOutputsToRunSend(\n context,\n threadId,\n runId,\n toolOutputs,\n options,\n );\n\n return _submitToolOutputsToRunDeserialize(result);\n }\n\n return {\n then: function (onFulfilled, onRejected) {\n return executeSubmitToolOutputsToRun().then(onFulfilled, onRejected).catch(onRejected);\n },\n async stream(): Promise<AgentEventMessageStream> {\n return submitToolOutputsToRunStreaming(context, threadId, runId, toolOutputs, options);\n },\n };\n}\n\nexport function _updateRunSend(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsUpdateRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: { metadata: options?.metadata },\n });\n}\n\nexport async function _updateRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Modifies an existing thread run. */\nexport async function updateRun(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsUpdateRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _updateRunSend(context, threadId, runId, options);\n return _updateRunDeserialize(result);\n}\n\nexport function _getRunSend(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsGetRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Gets an existing run from an existing thread. */\nexport async function getRun(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsGetRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _getRunSend(context, threadId, runId, options);\n return _getRunDeserialize(result);\n}\n\nexport function _listRunsSend(\n context: Client,\n threadId: string,\n options: RunsListRunsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs{?api-version,limit,order,after,before}\",\n {\n threadId: threadId,\n \"api-version\": context.apiVersion,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listRunsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return _agentsPagedResultThreadRunDeserializer(result.body);\n}\n\n/** Gets a list of runs for a specified thread. */\nexport function listRuns(\n context: Client,\n threadId: string,\n options: RunsListRunsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<ThreadRun> {\n return buildPagedAsyncIterator(\n context,\n () => _listRunsSend(context, threadId, options),\n _listRunsDeserialize,\n [\"200\"],\n { itemName: \"data\" },\n );\n}\n\nexport function _createRunSend(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs{?api-version,include%5B%5D}\",\n {\n threadId: threadId,\n \"api-version\": context.apiVersion,\n \"include%5B%5D\": !options?.include\n ? options?.include\n : options?.include.map((p: any) => {\n return p;\n }),\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n assistant_id: assistantId,\n model: options?.model,\n instructions: options?.instructions,\n additional_instructions: options?.additionalInstructions,\n additional_messages: !options?.additionalMessages\n ? options?.additionalMessages\n : threadMessageOptionsArraySerializer(options?.additionalMessages),\n tools: !options?.tools ? options?.tools : toolDefinitionUnionArraySerializer(options?.tools),\n tool_resources: !options?.toolResources\n ? options?.toolResources\n : toolResourcesSerializer(options?.toolResources),\n stream: options?.stream,\n temperature: options?.temperature,\n top_p: options?.topP,\n max_prompt_tokens: options?.maxPromptTokens,\n max_completion_tokens: options?.maxCompletionTokens,\n truncation_strategy: !options?.truncationStrategy\n ? options?.truncationStrategy\n : truncationObjectSerializer(options?.truncationStrategy),\n tool_choice: !options?.toolChoice\n ? options?.toolChoice\n : agentsToolChoiceOptionSerializer(options?.toolChoice),\n response_format: !options?.responseFormat\n ? options?.responseFormat\n : agentsResponseFormatOptionSerializer(options?.responseFormat),\n parallel_tool_calls: options?.parallelToolCalls,\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _createRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Creates a new run for an agent thread (internal implementation). */\nexport async function createRunInternal(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _createRunSend(context, threadId, assistantId, options);\n return _createRunDeserialize(result);\n}\n\n/** Creates a new run for an agent thread. */\nexport function createRun(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): AgentRunResponse {\n async function executeCreateRun(): Promise<ThreadRun> {\n return createRunInternal(context, threadId, assistantId, options);\n }\n\n return {\n then: function (onFulfilled, onRejected) {\n return executeCreateRun().then(onFulfilled, onRejected).catch(onRejected);\n },\n async stream(): Promise<AgentEventMessageStream> {\n return createRunStreaming(context, assistantId, threadId, options);\n },\n };\n}\n\n/** Creates a new run for an agent thread with polling */\nexport function createRunAndPoll(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ThreadRun>, ThreadRun> {\n return createPoller<ThreadRun>({\n initOperation: async () => {\n return createRunInternal(context, threadId, assistantId, options);\n },\n pollOperation: async (currentRun: ThreadRun) => {\n return getRun(context, threadId, currentRun.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n getOperationError: (result: ThreadRun) => {\n return getLroOperationStatus(result) === \"failed\" && result.lastError\n ? new Error(`Operation failed: ${result.lastError.message}`)\n : undefined;\n },\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\nfunction getLroOperationStatus(result: ThreadRun): OperationStatus {\n switch (result.status) {\n case \"queued\":\n return \"notStarted\";\n case \"in_progress\":\n return \"running\";\n case \"requires_action\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"cancelled\":\n case \"expired\":\n default:\n return \"failed\";\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/runs/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,uBAAuB,EACvB,kCAAkC,EAClC,oCAAoC,EACpC,wBAAwB,EACxB,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,qBAAqB,EACrB,uCAAuC,EACvC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,OAAO,EAAE,kBAAkB,EAAE,+BAA+B,EA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AAS,CAAC;QAChB,CAAC;QACD,YAAY,EAAE,OAAO,CAAC,cAAc,EAAE,YAAY;KACnD,CAAC,CAAC;AACL,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAiB;IAC9C,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,QAAQ;YACX,OAAO,YAAY,CAAC;QACtB,KAAK,aAAa;YAChB,OAAO,SAAS,CAAC;QACnB,KAAK,iBAAiB;YACpB,OAAO,SAAS,CAAC;QACnB,KAAK,WAAW;YACd,OAAO,WAAW,CAAC;QACrB,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS,CAAC;QACf;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AgentsContext as Client } from \"../index.js\";\nimport type { ThreadRun, _AgentsPagedResultThreadRun, ToolOutput } from \"../../models/models.js\";\nimport {\n toolResourcesSerializer,\n toolDefinitionUnionArraySerializer,\n agentsResponseFormatOptionSerializer,\n agentV1ErrorDeserializer,\n threadMessageOptionsArraySerializer,\n truncationObjectSerializer,\n agentsToolChoiceOptionSerializer,\n threadRunDeserializer,\n _agentsPagedResultThreadRunDeserializer,\n toolOutputArraySerializer,\n} from \"../../models/models.js\";\nimport type {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"./options.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { AgentRunResponse, AgentEventMessageStream } from \"../../models/streamingModels.js\";\nimport { createRunStreaming, submitToolOutputsToRunStreaming } from \"../operations.js\";\nimport type { OperationState, OperationStatus, PollerLike } from \"@azure/core-lro\";\nimport { createPoller } from \"../poller.js\";\n\nexport function _cancelRunSend(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsCancelRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}/cancel{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Cancels a run of an in‐progress thread. */\nexport async function cancelRun(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsCancelRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _cancelRunSend(context, threadId, runId, options);\n return _cancelRunDeserialize(result);\n}\n\nexport function _submitToolOutputsToRunSend(\n context: Client,\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options: RunsSubmitToolOutputsToRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}/submit_tool_outputs{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n tool_outputs: toolOutputs.length > 0 ? toolOutputArraySerializer(toolOutputs) : undefined,\n stream: options?.stream ?? false,\n },\n });\n}\n\nexport async function _submitToolOutputsToRunDeserialize(\n result: PathUncheckedResponse,\n): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Submits outputs from tools as requested by tool calls in a run. */\nexport function submitToolOutputsToRun(\n context: Client,\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options: RunsSubmitToolOutputsToRunOptionalParams = { requestOptions: {} },\n): AgentRunResponse {\n async function executeSubmitToolOutputsToRun(): Promise<ThreadRun> {\n const result = await _submitToolOutputsToRunSend(\n context,\n threadId,\n runId,\n toolOutputs,\n options,\n );\n\n return _submitToolOutputsToRunDeserialize(result);\n }\n\n return {\n then: function (onFulfilled, onRejected) {\n return executeSubmitToolOutputsToRun().then(onFulfilled, onRejected).catch(onRejected);\n },\n async stream(): Promise<AgentEventMessageStream> {\n return submitToolOutputsToRunStreaming(context, threadId, runId, toolOutputs, options);\n },\n };\n}\n\nexport function _updateRunSend(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsUpdateRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: { metadata: options?.metadata },\n });\n}\n\nexport async function _updateRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Modifies an existing thread run. */\nexport async function updateRun(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsUpdateRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _updateRunSend(context, threadId, runId, options);\n return _updateRunDeserialize(result);\n}\n\nexport function _getRunSend(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsGetRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs/{runId}{?api-version}\",\n {\n threadId: threadId,\n runId: runId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Gets an existing run from an existing thread. */\nexport async function getRun(\n context: Client,\n threadId: string,\n runId: string,\n options: RunsGetRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _getRunSend(context, threadId, runId, options);\n return _getRunDeserialize(result);\n}\n\nexport function _listRunsSend(\n context: Client,\n threadId: string,\n options: RunsListRunsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs{?api-version,limit,order,after,before}\",\n {\n threadId: threadId,\n \"api-version\": context.apiVersion,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listRunsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return _agentsPagedResultThreadRunDeserializer(result.body);\n}\n\n/** Gets a list of runs for a specified thread. */\nexport function listRuns(\n context: Client,\n threadId: string,\n options: RunsListRunsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<ThreadRun> {\n return buildPagedAsyncIterator(\n context,\n () => _listRunsSend(context, threadId, options),\n _listRunsDeserialize,\n [\"200\"],\n { itemName: \"data\" },\n );\n}\n\nexport function _createRunSend(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/threads/{threadId}/runs{?api-version,include%5B%5D}\",\n {\n threadId: threadId,\n \"api-version\": context.apiVersion,\n \"include%5B%5D\": !options?.include\n ? options?.include\n : options?.include.map((p: any) => {\n return p;\n }),\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n assistant_id: assistantId,\n model: options?.model,\n instructions: options?.instructions,\n additional_instructions: options?.additionalInstructions,\n additional_messages: !options?.additionalMessages\n ? options?.additionalMessages\n : threadMessageOptionsArraySerializer(options?.additionalMessages),\n tools: !options?.tools ? options?.tools : toolDefinitionUnionArraySerializer(options?.tools),\n tool_resources: !options?.toolResources\n ? options?.toolResources\n : toolResourcesSerializer(options?.toolResources),\n stream: options?.stream,\n temperature: options?.temperature,\n top_p: options?.topP,\n max_prompt_tokens: options?.maxPromptTokens,\n max_completion_tokens: options?.maxCompletionTokens,\n truncation_strategy: !options?.truncationStrategy\n ? options?.truncationStrategy\n : truncationObjectSerializer(options?.truncationStrategy),\n tool_choice: !options?.toolChoice\n ? options?.toolChoice\n : agentsToolChoiceOptionSerializer(options?.toolChoice),\n response_format: !options?.responseFormat\n ? options?.responseFormat\n : agentsResponseFormatOptionSerializer(options?.responseFormat),\n parallel_tool_calls: options?.parallelToolCalls,\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _createRunDeserialize(result: PathUncheckedResponse): Promise<ThreadRun> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return threadRunDeserializer(result.body);\n}\n\n/** Creates a new run for an agent thread (internal implementation). */\nexport async function createRunInternal(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): Promise<ThreadRun> {\n const result = await _createRunSend(context, threadId, assistantId, options);\n return _createRunDeserialize(result);\n}\n\n/** Creates a new run for an agent thread. */\nexport function createRun(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): AgentRunResponse {\n async function executeCreateRun(): Promise<ThreadRun> {\n return createRunInternal(context, threadId, assistantId, options);\n }\n\n return {\n then: function (onFulfilled, onRejected) {\n return executeCreateRun().then(onFulfilled, onRejected).catch(onRejected);\n },\n async stream(): Promise<AgentEventMessageStream> {\n return createRunStreaming(context, assistantId, threadId, options);\n },\n };\n}\n\n/** Creates a new run for an agent thread with polling */\nexport function createRunAndPoll(\n context: Client,\n threadId: string,\n assistantId: string,\n options: RunsCreateRunOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ThreadRun>, ThreadRun> {\n return createPoller<ThreadRun>({\n initOperation: async () => {\n return createRunInternal(context, threadId, assistantId, options);\n },\n pollOperation: async (currentRun: ThreadRun) => {\n return getRun(context, threadId, currentRun.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n getOperationError: (result: ThreadRun) => {\n return getLroOperationStatus(result) === \"failed\" && result.lastError\n ? new Error(`Operation failed: ${result.lastError.message}`)\n : undefined;\n },\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\nfunction getLroOperationStatus(result: ThreadRun): OperationStatus {\n switch (result.status) {\n case \"queued\":\n return \"notStarted\";\n case \"in_progress\":\n return \"running\";\n case \"requires_action\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"cancelled\":\n case \"expired\":\n default:\n return \"failed\";\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolDefinitionUnion, ToolResources, AgentsResponseFormatOption, ThreadMessageOptions, TruncationObject, AgentsToolChoiceOption,
|
|
1
|
+
import type { ToolDefinitionUnion, ToolResources, AgentsResponseFormatOption, ThreadMessageOptions, TruncationObject, AgentsToolChoiceOption, ListSortOrder, RunAdditionalFieldList } from "../../models/models.js";
|
|
2
2
|
import type { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
import type { PollingOptionsParams } from "../options.js";
|
|
4
4
|
/** Optional parameters. */
|
|
@@ -6,10 +6,6 @@ export interface RunsCancelRunOptionalParams extends OperationOptions {
|
|
|
6
6
|
}
|
|
7
7
|
/** Optional parameters. */
|
|
8
8
|
export interface RunsSubmitToolOutputsToRunOptionalParams extends OperationOptions {
|
|
9
|
-
/** A list of tools for which the outputs are being submitted */
|
|
10
|
-
toolOutputs?: ToolOutput[];
|
|
11
|
-
/** A list of tool approvals allowing data to be sent to tools. */
|
|
12
|
-
toolApprovals?: ToolApproval[];
|
|
13
9
|
/** If true, returns a stream of events that happen during the Run as SSE, terminating at `[DONE]`. */
|
|
14
10
|
stream?: boolean | null;
|
|
15
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/runs/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,oBAAoB,EACpB,gBAAgB,EACh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CAAC;IACtB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IACnD,wFAAwF;IACxF,KAAK,CAAC,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;IACrC,yFAAyF;IACzF,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7C,qEAAqE;IACrE,UAAU,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC3C,uDAAuD;IACvD,cAAc,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAC;IACnD,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yPAAyP;IACzP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/runs/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ToolDefinitionUnion,\n ToolResources,\n AgentsResponseFormatOption,\n ThreadMessageOptions,\n TruncationObject,\n AgentsToolChoiceOption,\n
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/runs/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ToolDefinitionUnion,\n ToolResources,\n AgentsResponseFormatOption,\n ThreadMessageOptions,\n TruncationObject,\n AgentsToolChoiceOption,\n ListSortOrder,\n RunAdditionalFieldList,\n} from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\nimport type { PollingOptionsParams } from \"../options.js\";\n\n/** Optional parameters. */\nexport interface RunsCancelRunOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface RunsSubmitToolOutputsToRunOptionalParams extends OperationOptions {\n /** If true, returns a stream of events that happen during the Run as SSE, terminating at `[DONE]`. */\n stream?: boolean | null;\n}\n\n/** Optional parameters. */\nexport interface RunsUpdateRunOptionalParams extends OperationOptions {\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface RunsGetRunOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface RunsListRunsOptionalParams extends OperationOptions {\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface RunsCreateRunOptionalParams extends OperationOptions, PollingOptionsParams {\n /**\n * A list of additional fields to include in the response.\n * Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content`\n * to fetch the file search result content.\n */\n include?: RunAdditionalFieldList[];\n /** The overridden model name that the agent should use to run the thread. */\n model?: string | null;\n /** The overridden system instructions that the agent should use to run the thread. */\n instructions?: string | null;\n /**\n * Additional instructions to append at the end of the instructions for the run. This is useful for modifying the behavior\n * on a per-run basis without overriding other instructions.\n */\n additionalInstructions?: string | null;\n /** Adds additional messages to the thread before creating the run. */\n additionalMessages?: ThreadMessageOptions[] | null;\n /** The overridden list of enabled tools that the agent should use to run the thread. */\n tools?: ToolDefinitionUnion[] | null;\n /** The overridden enabled tool resources that the agent should use to run the thread. */\n toolResources?: ToolResources | null;\n /**\n * If `true`, returns a stream of events that happen during the Run as server-sent events,\n * terminating when the Run enters a terminal state with a `data: [DONE]` message.\n */\n stream?: boolean;\n /**\n * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\n * more random, while lower values like 0.2 will make it more focused and deterministic.\n */\n temperature?: number | null;\n /**\n * An alternative to sampling with temperature, called nucleus sampling, where the model\n * considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens\n * comprising the top 10% probability mass are considered.\n *\n * We generally recommend altering this or temperature but not both.\n */\n topP?: number | null;\n /**\n * The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only\n * the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,\n * the run will end with status `incomplete`. See `incomplete_details` for more info.\n */\n maxPromptTokens?: number | null;\n /**\n * The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort\n * to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of\n * completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n */\n maxCompletionTokens?: number | null;\n /** The strategy to use for dropping messages as the context windows moves forward. */\n truncationStrategy?: TruncationObject | null;\n /** Controls whether or not and which tool is called by the model. */\n toolChoice?: AgentsToolChoiceOption | null;\n /** Specifies the format that the model must output. */\n responseFormat?: AgentsResponseFormatOption | null;\n /** If `true` functions will run in parallel during tool use. */\n parallelToolCalls?: boolean;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,YAAY,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-agents` package.\n */\nexport const SDK_VERSION = `1.1.0`;\n\n/**\n * The package name of the `@azure/ai-agents` package.\n */\nexport const PACKAGE_NAME = \"@azure/ai-agents\";\n"]}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -2,9 +2,8 @@ import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./sta
|
|
|
2
2
|
import { FileContents } from "./static-helpers/multipartHelpers.js";
|
|
3
3
|
export * from "./models/streamingModels.js";
|
|
4
4
|
export * from "./utils/utils.js";
|
|
5
|
-
export { MCPTool } from "./utils/MCPTool.js";
|
|
6
5
|
export { AgentsClient } from "./agentsClient.js";
|
|
7
|
-
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration,
|
|
6
|
+
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration, AzureAISearchToolDefinition, OpenApiToolDefinition, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, ConnectedAgentToolDefinition, ConnectedAgentDetails, AzureFunctionToolDefinition, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, ToolResources, CodeInterpreterToolResource, VectorStoreDataSource, VectorStoreDataSourceAssetType, FileSearchToolResource, VectorStoreConfigurations, VectorStoreConfiguration, AzureAISearchToolResource, AISearchIndexResource, AzureAISearchQueryType, AgentsResponseFormat, ResponseFormat, ResponseFormatJsonSchemaType, ResponseFormatJsonSchema, AgentsResponseFormatOption, AgentsResponseFormatMode, Agent, AgentV1Error, AgentErrorDetail, AgentDeletionStatus, AgentThreadCreationOptions, ThreadMessageOptions, MessageRole, MessageInputContent, MessageInputContentBlock, MessageInputContentBlockUnion, MessageBlockType, MessageInputTextBlock, MessageInputImageFileBlock, MessageImageFileParam, ImageDetailLevel, MessageInputImageUrlBlock, MessageImageUrlParam, MessageAttachment, MessageAttachmentToolDefinition, TruncationObject, TruncationStrategy, AgentsNamedToolChoice, AgentsNamedToolChoiceType, FunctionName, AgentsToolChoiceOption, AgentsToolChoiceOptionMode, ThreadRun, RunStatus, RequiredAction, RequiredActionUnion, SubmitToolOutputsAction, SubmitToolOutputsDetails, RequiredToolCall, RequiredToolCallUnion, RequiredFunctionToolCall, RequiredFunctionToolCallDetails, RunError, IncompleteRunDetails, IncompleteDetailsReason, RunCompletionUsage, AgentThread, ThreadDeletionStatus, ThreadMessage, MessageStatus, MessageIncompleteDetails, MessageIncompleteDetailsReason, MessageContent, MessageContentUnion, MessageTextContent, MessageTextDetails, MessageTextAnnotation, MessageTextAnnotationUnion, MessageTextUrlCitationAnnotation, MessageTextUrlCitationDetails, MessageTextFileCitationAnnotation, MessageTextFileCitationDetails, MessageTextFilePathAnnotation, MessageTextFilePathDetails, MessageImageFileContent, MessageImageFileDetails, ToolOutput, RunStep, RunStepType, RunStepStatus, RunStepDetails, RunStepDetailsUnion, RunStepMessageCreationDetails, RunStepMessageCreationReference, RunStepToolCallDetails, RunStepToolCall, RunStepToolCallUnion, RunStepCodeInterpreterToolCall, RunStepCodeInterpreterToolCallDetails, RunStepCodeInterpreterToolCallOutput, RunStepCodeInterpreterToolCallOutputUnion, RunStepCodeInterpreterLogOutput, RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterImageReference, RunStepFileSearchToolCall, RunStepFileSearchToolCallResults, RunStepFileSearchToolCallResult, FileSearchToolCallContent, RunStepBingGroundingToolCall, RunStepAzureAISearchToolCall, RunStepFunctionToolCall, RunStepFunctionToolCallDetails, RunStepOpenAPIToolCall, RunStepError, RunStepErrorCode, RunStepCompletionUsage, FileListResponse, FileInfo, FilePurpose, FileState, FileDeletionStatus, VectorStore, VectorStoreFileCount, VectorStoreStatus, VectorStoreExpirationPolicy, VectorStoreExpirationPolicyAnchor, VectorStoreChunkingStrategyRequest, VectorStoreChunkingStrategyRequestUnion, VectorStoreChunkingStrategyRequestType, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreStaticChunkingStrategyOptions, VectorStoreDeletionStatus, VectorStoreFile, VectorStoreFileStatus, VectorStoreFileError, VectorStoreFileErrorCode, VectorStoreChunkingStrategyResponse, VectorStoreChunkingStrategyResponseUnion, VectorStoreChunkingStrategyResponseType, VectorStoreAutoChunkingStrategyResponse, VectorStoreStaticChunkingStrategyResponse, VectorStoreFileDeletionStatus, VectorStoreFileBatch, VectorStoreFileBatchStatus, MessageDeltaChunk, MessageDelta, MessageDeltaContent, MessageDeltaContentUnion, MessageDeltaImageFileContent, MessageDeltaImageFileContentObject, MessageDeltaTextContent, MessageDeltaTextContentObject, MessageDeltaTextAnnotation, MessageDeltaTextAnnotationUnion, MessageDeltaTextUrlCitationAnnotation, MessageDeltaTextUrlCitationDetails, MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFileCitationAnnotationObject, MessageDeltaTextFilePathAnnotation, MessageDeltaTextFilePathAnnotationObject, RunStepDeltaChunk, RunStepDelta, RunStepDeltaDetail, RunStepDeltaDetailUnion, RunStepDeltaMessageCreation, RunStepDeltaMessageCreationObject, RunStepDeltaToolCallObject, RunStepDeltaToolCall, RunStepDeltaToolCallUnion, RunStepDeltaFunctionToolCall, RunStepDeltaFunction, RunStepDeltaFileSearchToolCall, RunStepDeltaCodeInterpreterToolCall, RunStepDeltaCodeInterpreterDetailItemObject, RunStepDeltaCodeInterpreterOutput, RunStepDeltaCodeInterpreterOutputUnion, RunStepDeltaCodeInterpreterLogOutput, RunStepDeltaCodeInterpreterImageOutput, RunStepDeltaCodeInterpreterImageOutputObject, AgentStreamEvent, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter, KnownVersions, } from "./models/index.js";
|
|
8
7
|
export { AgentsClientOptionalParams, CreateThreadAndRunOptionalParams, DeleteAgentOptionalParams, UpdateAgentOptionalParams, GetAgentOptionalParams, ListAgentsOptionalParams, CreateAgentOptionalParams, PollingOptionsParams, PollingOptions, } from "./api/index.js";
|
|
9
8
|
export { FilesGetFileContentOptionalParams, FilesGetFileOptionalParams, FilesDeleteFileOptionalParams, FilesUploadFileOptionalParams, FilesListFilesOptionalParams, } from "./api/files/index.js";
|
|
10
9
|
export { MessagesUpdateMessageOptionalParams, MessagesGetMessageOptionalParams, MessagesListMessagesOptionalParams, MessagesCreateMessageOptionalParams, } from "./api/messages/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,iCAAiC,EACjC,gCAAgC,EAChC,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,4B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6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,gCAAgC,EAChC,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAA0B,EAAE,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/browser/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
export * from "./models/streamingModels.js";
|
|
4
4
|
export * from "./utils/utils.js";
|
|
5
|
-
export { MCPTool } from "./utils/MCPTool.js";
|
|
6
5
|
export { AgentsClient } from "./agentsClient.js";
|
|
7
6
|
export { VectorStoreDataSourceAssetType, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, KnownVersions, } from "./models/index.js";
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EA4CL,8BAA8B,EAmL9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EAIT,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\nimport { FileContents } from \"./static-helpers/multipartHelpers.js\";\nexport * from \"./models/streamingModels.js\";\nexport * from \"./utils/utils.js\";\nexport { MCPTool } from \"./utils/MCPTool.js\";\nexport { AgentsClient } from \"./agentsClient.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n BingGroundingSearchToolParameters,\n BingGroundingSearchConfiguration,\n MicrosoftFabricToolDefinition,\n FabricDataAgentToolParameters,\n ToolConnection,\n SharepointToolDefinition,\n SharepointGroundingToolParameters,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n BingCustomSearchToolDefinition,\n BingCustomSearchToolParameters,\n BingCustomSearchConfiguration,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n DeepResearchToolDefinition,\n DeepResearchDetails,\n DeepResearchBingGroundingConnection,\n MCPToolDefinition,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchToolResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n MCPToolResource,\n AgentsResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsResponseFormatOption,\n AgentsResponseFormatMode,\n Agent,\n AgentV1Error,\n AgentErrorDetail,\n AgentDeletionStatus,\n AgentThreadCreationOptions,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsToolChoiceOption,\n AgentsToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RequiredMcpToolCall,\n SubmitToolApprovalAction,\n SubmitToolApprovalDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n AgentThread,\n ThreadDeletionStatus,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n ToolOutput,\n ToolApproval,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepMcpToolCall,\n RunStepSharepointToolCall,\n RunStepMicrosoftFabricToolCall,\n RunStepBingCustomSearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepDeepResearchToolCall,\n RunStepDeepResearchToolCallDetails,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n AgentsClientOptionalParams,\n CreateThreadAndRunOptionalParams,\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n PollingOptionsParams,\n PollingOptions,\n} from \"./api/index.js\";\nexport {\n FilesGetFileContentOptionalParams,\n FilesGetFileOptionalParams,\n FilesDeleteFileOptionalParams,\n FilesUploadFileOptionalParams,\n FilesListFilesOptionalParams,\n} from \"./api/files/index.js\";\nexport {\n MessagesUpdateMessageOptionalParams,\n MessagesGetMessageOptionalParams,\n MessagesListMessagesOptionalParams,\n MessagesCreateMessageOptionalParams,\n} from \"./api/messages/index.js\";\nexport {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"./api/runs/index.js\";\nexport {\n RunStepsListRunStepsOptionalParams,\n RunStepsGetRunStepOptionalParams,\n} from \"./api/runSteps/index.js\";\nexport {\n ThreadsDeleteThreadOptionalParams,\n ThreadsUpdateThreadOptionalParams,\n ThreadsGetThreadOptionalParams,\n ThreadsListThreadsOptionalParams,\n ThreadsCreateThreadOptionalParams,\n} from \"./api/threads/index.js\";\nexport {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"./api/vectorStoreFileBatches/index.js\";\nexport {\n VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n VectorStoreFilesGetVectorStoreFileOptionalParams,\n VectorStoreFilesCreateVectorStoreFileOptionalParams,\n VectorStoreFilesListVectorStoreFilesOptionalParams,\n} from \"./api/vectorStoreFiles/index.js\";\nexport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./api/vectorStores/index.js\";\nexport {\n FilesOperations,\n MessagesOperations,\n RunsOperations,\n RunStepsOperations,\n ThreadsOperations,\n VectorStoreFileBatchesOperations,\n VectorStoreFilesOperations,\n VectorStoresOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { FileContents };\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAgCL,8BAA8B,EAwK9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EAIT,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\nimport { FileContents } from \"./static-helpers/multipartHelpers.js\";\nexport * from \"./models/streamingModels.js\";\nexport * from \"./utils/utils.js\";\nexport { AgentsClient } from \"./agentsClient.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n BingGroundingSearchToolParameters,\n BingGroundingSearchConfiguration,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchToolResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n AgentsResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsResponseFormatOption,\n AgentsResponseFormatMode,\n Agent,\n AgentV1Error,\n AgentErrorDetail,\n AgentDeletionStatus,\n AgentThreadCreationOptions,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsToolChoiceOption,\n AgentsToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n AgentThread,\n ThreadDeletionStatus,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n ToolOutput,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n AgentsClientOptionalParams,\n CreateThreadAndRunOptionalParams,\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n PollingOptionsParams,\n PollingOptions,\n} from \"./api/index.js\";\nexport {\n FilesGetFileContentOptionalParams,\n FilesGetFileOptionalParams,\n FilesDeleteFileOptionalParams,\n FilesUploadFileOptionalParams,\n FilesListFilesOptionalParams,\n} from \"./api/files/index.js\";\nexport {\n MessagesUpdateMessageOptionalParams,\n MessagesGetMessageOptionalParams,\n MessagesListMessagesOptionalParams,\n MessagesCreateMessageOptionalParams,\n} from \"./api/messages/index.js\";\nexport {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"./api/runs/index.js\";\nexport {\n RunStepsListRunStepsOptionalParams,\n RunStepsGetRunStepOptionalParams,\n} from \"./api/runSteps/index.js\";\nexport {\n ThreadsDeleteThreadOptionalParams,\n ThreadsUpdateThreadOptionalParams,\n ThreadsGetThreadOptionalParams,\n ThreadsListThreadsOptionalParams,\n ThreadsCreateThreadOptionalParams,\n} from \"./api/threads/index.js\";\nexport {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"./api/vectorStoreFileBatches/index.js\";\nexport {\n VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n VectorStoreFilesGetVectorStoreFileOptionalParams,\n VectorStoreFilesCreateVectorStoreFileOptionalParams,\n VectorStoreFilesListVectorStoreFilesOptionalParams,\n} from \"./api/vectorStoreFiles/index.js\";\nexport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./api/vectorStores/index.js\";\nexport {\n FilesOperations,\n MessagesOperations,\n RunsOperations,\n RunStepsOperations,\n ThreadsOperations,\n VectorStoreFileBatchesOperations,\n VectorStoreFilesOperations,\n VectorStoresOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { FileContents };\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from "./streamingModels.js";
|
|
2
|
-
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration,
|
|
2
|
+
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration, AzureAISearchToolDefinition, OpenApiToolDefinition, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, ConnectedAgentToolDefinition, ConnectedAgentDetails, AzureFunctionToolDefinition, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, ToolResources, CodeInterpreterToolResource, VectorStoreDataSource, VectorStoreDataSourceAssetType, FileSearchToolResource, VectorStoreConfigurations, VectorStoreConfiguration, AzureAISearchToolResource, AISearchIndexResource, AzureAISearchQueryType, AgentsResponseFormat, ResponseFormat, ResponseFormatJsonSchemaType, ResponseFormatJsonSchema, AgentsResponseFormatOption, AgentsResponseFormatMode, Agent, AgentV1Error, AgentErrorDetail, AgentDeletionStatus, AgentThreadCreationOptions, ThreadMessageOptions, MessageRole, MessageInputContent, MessageInputContentBlock, MessageInputContentBlockUnion, MessageBlockType, MessageInputTextBlock, MessageInputImageFileBlock, MessageImageFileParam, ImageDetailLevel, MessageInputImageUrlBlock, MessageImageUrlParam, MessageAttachment, MessageAttachmentToolDefinition, TruncationObject, TruncationStrategy, AgentsNamedToolChoice, AgentsNamedToolChoiceType, FunctionName, AgentsToolChoiceOption, AgentsToolChoiceOptionMode, ThreadRun, RunStatus, RequiredAction, RequiredActionUnion, SubmitToolOutputsAction, SubmitToolOutputsDetails, RequiredToolCall, RequiredToolCallUnion, RequiredFunctionToolCall, RequiredFunctionToolCallDetails, RunError, IncompleteRunDetails, IncompleteDetailsReason, RunCompletionUsage, AgentThread, ThreadDeletionStatus, ThreadMessage, MessageStatus, MessageIncompleteDetails, MessageIncompleteDetailsReason, MessageContent, MessageContentUnion, MessageTextContent, MessageTextDetails, MessageTextAnnotation, MessageTextAnnotationUnion, MessageTextUrlCitationAnnotation, MessageTextUrlCitationDetails, MessageTextFileCitationAnnotation, MessageTextFileCitationDetails, MessageTextFilePathAnnotation, MessageTextFilePathDetails, MessageImageFileContent, MessageImageFileDetails, ToolOutput, RunStep, RunStepType, RunStepStatus, RunStepDetails, RunStepDetailsUnion, RunStepMessageCreationDetails, RunStepMessageCreationReference, RunStepToolCallDetails, RunStepToolCall, RunStepToolCallUnion, RunStepCodeInterpreterToolCall, RunStepCodeInterpreterToolCallDetails, RunStepCodeInterpreterToolCallOutput, RunStepCodeInterpreterToolCallOutputUnion, RunStepCodeInterpreterLogOutput, RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterImageReference, RunStepFileSearchToolCall, RunStepFileSearchToolCallResults, RunStepFileSearchToolCallResult, FileSearchToolCallContent, RunStepBingGroundingToolCall, RunStepAzureAISearchToolCall, RunStepFunctionToolCall, RunStepFunctionToolCallDetails, RunStepOpenAPIToolCall, RunStepError, RunStepErrorCode, RunStepCompletionUsage, FileListResponse, FileInfo, FilePurpose, FileState, FileDeletionStatus, VectorStore, VectorStoreFileCount, VectorStoreStatus, VectorStoreExpirationPolicy, VectorStoreExpirationPolicyAnchor, VectorStoreChunkingStrategyRequest, VectorStoreChunkingStrategyRequestUnion, VectorStoreChunkingStrategyRequestType, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreStaticChunkingStrategyOptions, VectorStoreDeletionStatus, VectorStoreFile, VectorStoreFileStatus, VectorStoreFileError, VectorStoreFileErrorCode, VectorStoreChunkingStrategyResponse, VectorStoreChunkingStrategyResponseUnion, VectorStoreChunkingStrategyResponseType, VectorStoreAutoChunkingStrategyResponse, VectorStoreStaticChunkingStrategyResponse, VectorStoreFileDeletionStatus, VectorStoreFileBatch, VectorStoreFileBatchStatus, MessageDeltaChunk, MessageDelta, MessageDeltaContent, MessageDeltaContentUnion, MessageDeltaImageFileContent, MessageDeltaImageFileContentObject, MessageDeltaTextContent, MessageDeltaTextContentObject, MessageDeltaTextAnnotation, MessageDeltaTextAnnotationUnion, MessageDeltaTextUrlCitationAnnotation, MessageDeltaTextUrlCitationDetails, MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFileCitationAnnotationObject, MessageDeltaTextFilePathAnnotation, MessageDeltaTextFilePathAnnotationObject, RunStepDeltaChunk, RunStepDelta, RunStepDeltaDetail, RunStepDeltaDetailUnion, RunStepDeltaMessageCreation, RunStepDeltaMessageCreationObject, RunStepDeltaToolCallObject, RunStepDeltaToolCall, RunStepDeltaToolCallUnion, RunStepDeltaFunctionToolCall, RunStepDeltaFunction, RunStepDeltaFileSearchToolCall, RunStepDeltaCodeInterpreterToolCall, RunStepDeltaCodeInterpreterDetailItemObject, RunStepDeltaCodeInterpreterOutput, RunStepDeltaCodeInterpreterOutputUnion, RunStepDeltaCodeInterpreterLogOutput, RunStepDeltaCodeInterpreterImageOutput, RunStepDeltaCodeInterpreterImageOutputObject, AgentStreamEvent, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter, KnownVersions, } from "./models.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,iCAAiC,EACjC,gCAAgC,EAChC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,iCAAiC,EACjC,gCAAgC,EAChC,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,eAA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AA8B,EAC9B,mCAAmC,EACnC,2CAA2C,EAC3C,iCAAiC,EACjC,sCAAsC,EACtC,oCAAoC,EACpC,sCAAsC,EACtC,4CAA4C,EAC5C,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAC3B,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAgCL,8BAA8B,EAwK9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EAIT,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./streamingModels.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n BingGroundingSearchToolParameters,\n BingGroundingSearchConfiguration,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchToolResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n AgentsResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsResponseFormatOption,\n AgentsResponseFormatMode,\n Agent,\n AgentV1Error,\n AgentErrorDetail,\n AgentDeletionStatus,\n AgentThreadCreationOptions,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsToolChoiceOption,\n AgentsToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n AgentThread,\n ThreadDeletionStatus,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n ToolOutput,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models.js\";\n"]}
|