@azure/ai-projects 1.0.0-alpha.20250421.1 → 1.0.0-alpha.20250422.1
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 +157 -0
- package/dist/browser/agents/customModels.d.ts +6 -1
- package/dist/browser/agents/customModels.d.ts.map +1 -1
- package/dist/browser/agents/customModels.js.map +1 -1
- package/dist/browser/agents/index.d.ts +4 -2
- package/dist/browser/agents/index.d.ts.map +1 -1
- package/dist/browser/agents/index.js +2 -1
- package/dist/browser/agents/index.js.map +1 -1
- package/dist/browser/agents/inputOutputs.d.ts +4 -4
- package/dist/browser/agents/inputOutputs.d.ts.map +1 -1
- package/dist/browser/agents/inputOutputs.js.map +1 -1
- package/dist/browser/agents/messages.js +1 -1
- package/dist/browser/agents/messages.js.map +1 -1
- package/dist/browser/agents/threads.d.ts +4 -2
- package/dist/browser/agents/threads.d.ts.map +1 -1
- package/dist/browser/agents/threads.js +23 -0
- package/dist/browser/agents/threads.js.map +1 -1
- package/dist/browser/agents/utils.d.ts +1 -1
- package/dist/browser/agents/utils.d.ts.map +1 -1
- package/dist/browser/agents/utils.js.map +1 -1
- package/dist/browser/customization/convertOutputModelsFromWire.d.ts +1 -0
- package/dist/browser/customization/convertOutputModelsFromWire.d.ts.map +1 -1
- package/dist/browser/customization/convertOutputModelsFromWire.js +10 -0
- package/dist/browser/customization/convertOutputModelsFromWire.js.map +1 -1
- package/dist/browser/customization/models.d.ts +112 -5
- package/dist/browser/customization/models.d.ts.map +1 -1
- package/dist/browser/customization/models.js.map +1 -1
- package/dist/browser/customization/outputModels.d.ts +13 -0
- package/dist/browser/customization/outputModels.d.ts.map +1 -1
- package/dist/browser/customization/outputModels.js.map +1 -1
- package/dist/browser/customization/parameters.d.ts +18 -0
- package/dist/browser/customization/parameters.d.ts.map +1 -1
- package/dist/browser/customization/parameters.js.map +1 -1
- package/dist/browser/generated/src/clientDefinitions.d.ts +5 -3
- package/dist/browser/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/browser/generated/src/clientDefinitions.js.map +1 -1
- package/dist/browser/generated/src/isUnexpected.d.ts +2 -1
- package/dist/browser/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/browser/generated/src/isUnexpected.js +1 -0
- package/dist/browser/generated/src/isUnexpected.js.map +1 -1
- package/dist/browser/generated/src/models.d.ts +89 -13
- package/dist/browser/generated/src/models.d.ts.map +1 -1
- package/dist/browser/generated/src/models.js.map +1 -1
- package/dist/browser/generated/src/outputModels.d.ts +46 -5
- package/dist/browser/generated/src/outputModels.d.ts.map +1 -1
- package/dist/browser/generated/src/outputModels.js.map +1 -1
- package/dist/browser/generated/src/parameters.d.ts +18 -0
- package/dist/browser/generated/src/parameters.d.ts.map +1 -1
- package/dist/browser/generated/src/parameters.js.map +1 -1
- package/dist/browser/generated/src/projectsClient.js +1 -1
- package/dist/browser/generated/src/projectsClient.js.map +1 -1
- package/dist/browser/generated/src/responses.d.ts +15 -1
- package/dist/browser/generated/src/responses.d.ts.map +1 -1
- package/dist/browser/generated/src/responses.js.map +1 -1
- package/dist/commonjs/agents/customModels.d.ts +6 -1
- package/dist/commonjs/agents/customModels.d.ts.map +1 -1
- package/dist/commonjs/agents/customModels.js.map +1 -1
- package/dist/commonjs/agents/index.d.ts +4 -2
- package/dist/commonjs/agents/index.d.ts.map +1 -1
- package/dist/commonjs/agents/index.js +1 -0
- package/dist/commonjs/agents/index.js.map +1 -1
- package/dist/commonjs/agents/inputOutputs.d.ts +4 -4
- package/dist/commonjs/agents/inputOutputs.d.ts.map +1 -1
- package/dist/commonjs/agents/inputOutputs.js.map +1 -1
- package/dist/commonjs/agents/messages.js +1 -1
- package/dist/commonjs/agents/messages.js.map +1 -1
- package/dist/commonjs/agents/threads.d.ts +4 -2
- package/dist/commonjs/agents/threads.d.ts.map +1 -1
- package/dist/commonjs/agents/threads.js +24 -0
- package/dist/commonjs/agents/threads.js.map +1 -1
- package/dist/commonjs/agents/utils.d.ts +1 -1
- package/dist/commonjs/agents/utils.d.ts.map +1 -1
- package/dist/commonjs/agents/utils.js.map +1 -1
- package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts +1 -0
- package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts.map +1 -1
- package/dist/commonjs/customization/convertOutputModelsFromWire.js +11 -0
- package/dist/commonjs/customization/convertOutputModelsFromWire.js.map +1 -1
- package/dist/commonjs/customization/models.d.ts +112 -5
- package/dist/commonjs/customization/models.d.ts.map +1 -1
- package/dist/commonjs/customization/models.js.map +1 -1
- package/dist/commonjs/customization/outputModels.d.ts +13 -0
- package/dist/commonjs/customization/outputModels.d.ts.map +1 -1
- package/dist/commonjs/customization/outputModels.js.map +1 -1
- package/dist/commonjs/customization/parameters.d.ts +18 -0
- package/dist/commonjs/customization/parameters.d.ts.map +1 -1
- package/dist/commonjs/customization/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/clientDefinitions.d.ts +5 -3
- package/dist/commonjs/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/generated/src/clientDefinitions.js.map +1 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts +2 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/commonjs/generated/src/isUnexpected.js +1 -0
- package/dist/commonjs/generated/src/isUnexpected.js.map +1 -1
- package/dist/commonjs/generated/src/models.d.ts +89 -13
- package/dist/commonjs/generated/src/models.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models.js.map +1 -1
- package/dist/commonjs/generated/src/outputModels.d.ts +46 -5
- package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -1
- package/dist/commonjs/generated/src/outputModels.js.map +1 -1
- package/dist/commonjs/generated/src/parameters.d.ts +18 -0
- package/dist/commonjs/generated/src/parameters.d.ts.map +1 -1
- package/dist/commonjs/generated/src/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/projectsClient.js +1 -1
- package/dist/commonjs/generated/src/projectsClient.js.map +1 -1
- package/dist/commonjs/generated/src/responses.d.ts +15 -1
- package/dist/commonjs/generated/src/responses.d.ts.map +1 -1
- package/dist/commonjs/generated/src/responses.js.map +1 -1
- package/dist/esm/agents/customModels.d.ts +6 -1
- package/dist/esm/agents/customModels.d.ts.map +1 -1
- package/dist/esm/agents/customModels.js.map +1 -1
- package/dist/esm/agents/index.d.ts +4 -2
- package/dist/esm/agents/index.d.ts.map +1 -1
- package/dist/esm/agents/index.js +2 -1
- package/dist/esm/agents/index.js.map +1 -1
- package/dist/esm/agents/inputOutputs.d.ts +4 -4
- package/dist/esm/agents/inputOutputs.d.ts.map +1 -1
- package/dist/esm/agents/inputOutputs.js.map +1 -1
- package/dist/esm/agents/messages.js +1 -1
- package/dist/esm/agents/messages.js.map +1 -1
- package/dist/esm/agents/threads.d.ts +4 -2
- package/dist/esm/agents/threads.d.ts.map +1 -1
- package/dist/esm/agents/threads.js +23 -0
- package/dist/esm/agents/threads.js.map +1 -1
- package/dist/esm/agents/utils.d.ts +1 -1
- package/dist/esm/agents/utils.d.ts.map +1 -1
- package/dist/esm/agents/utils.js.map +1 -1
- package/dist/esm/customization/convertOutputModelsFromWire.d.ts +1 -0
- package/dist/esm/customization/convertOutputModelsFromWire.d.ts.map +1 -1
- package/dist/esm/customization/convertOutputModelsFromWire.js +10 -0
- package/dist/esm/customization/convertOutputModelsFromWire.js.map +1 -1
- package/dist/esm/customization/models.d.ts +112 -5
- package/dist/esm/customization/models.d.ts.map +1 -1
- package/dist/esm/customization/models.js.map +1 -1
- package/dist/esm/customization/outputModels.d.ts +13 -0
- package/dist/esm/customization/outputModels.d.ts.map +1 -1
- package/dist/esm/customization/outputModels.js.map +1 -1
- package/dist/esm/customization/parameters.d.ts +18 -0
- package/dist/esm/customization/parameters.d.ts.map +1 -1
- package/dist/esm/customization/parameters.js.map +1 -1
- package/dist/esm/generated/src/clientDefinitions.d.ts +5 -3
- package/dist/esm/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/generated/src/clientDefinitions.js.map +1 -1
- package/dist/esm/generated/src/isUnexpected.d.ts +2 -1
- package/dist/esm/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/esm/generated/src/isUnexpected.js +1 -0
- package/dist/esm/generated/src/isUnexpected.js.map +1 -1
- package/dist/esm/generated/src/models.d.ts +89 -13
- package/dist/esm/generated/src/models.d.ts.map +1 -1
- package/dist/esm/generated/src/models.js.map +1 -1
- package/dist/esm/generated/src/outputModels.d.ts +46 -5
- package/dist/esm/generated/src/outputModels.d.ts.map +1 -1
- package/dist/esm/generated/src/outputModels.js.map +1 -1
- package/dist/esm/generated/src/parameters.d.ts +18 -0
- package/dist/esm/generated/src/parameters.d.ts.map +1 -1
- package/dist/esm/generated/src/parameters.js.map +1 -1
- package/dist/esm/generated/src/projectsClient.js +1 -1
- package/dist/esm/generated/src/projectsClient.js.map +1 -1
- package/dist/esm/generated/src/responses.d.ts +15 -1
- package/dist/esm/generated/src/responses.d.ts.map +1 -1
- package/dist/esm/generated/src/responses.js.map +1 -1
- package/dist/react-native/agents/customModels.d.ts +6 -1
- package/dist/react-native/agents/customModels.d.ts.map +1 -1
- package/dist/react-native/agents/customModels.js.map +1 -1
- package/dist/react-native/agents/index.d.ts +4 -2
- package/dist/react-native/agents/index.d.ts.map +1 -1
- package/dist/react-native/agents/index.js +2 -1
- package/dist/react-native/agents/index.js.map +1 -1
- package/dist/react-native/agents/inputOutputs.d.ts +4 -4
- package/dist/react-native/agents/inputOutputs.d.ts.map +1 -1
- package/dist/react-native/agents/inputOutputs.js.map +1 -1
- package/dist/react-native/agents/messages.js +1 -1
- package/dist/react-native/agents/messages.js.map +1 -1
- package/dist/react-native/agents/threads.d.ts +4 -2
- package/dist/react-native/agents/threads.d.ts.map +1 -1
- package/dist/react-native/agents/threads.js +23 -0
- package/dist/react-native/agents/threads.js.map +1 -1
- package/dist/react-native/agents/utils.d.ts +1 -1
- package/dist/react-native/agents/utils.d.ts.map +1 -1
- package/dist/react-native/agents/utils.js.map +1 -1
- package/dist/react-native/customization/convertOutputModelsFromWire.d.ts +1 -0
- package/dist/react-native/customization/convertOutputModelsFromWire.d.ts.map +1 -1
- package/dist/react-native/customization/convertOutputModelsFromWire.js +10 -0
- package/dist/react-native/customization/convertOutputModelsFromWire.js.map +1 -1
- package/dist/react-native/customization/models.d.ts +112 -5
- package/dist/react-native/customization/models.d.ts.map +1 -1
- package/dist/react-native/customization/models.js.map +1 -1
- package/dist/react-native/customization/outputModels.d.ts +13 -0
- package/dist/react-native/customization/outputModels.d.ts.map +1 -1
- package/dist/react-native/customization/outputModels.js.map +1 -1
- package/dist/react-native/customization/parameters.d.ts +18 -0
- package/dist/react-native/customization/parameters.d.ts.map +1 -1
- package/dist/react-native/customization/parameters.js.map +1 -1
- package/dist/react-native/generated/src/clientDefinitions.d.ts +5 -3
- package/dist/react-native/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/react-native/generated/src/clientDefinitions.js.map +1 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts +2 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/react-native/generated/src/isUnexpected.js +1 -0
- package/dist/react-native/generated/src/isUnexpected.js.map +1 -1
- package/dist/react-native/generated/src/models.d.ts +89 -13
- package/dist/react-native/generated/src/models.d.ts.map +1 -1
- package/dist/react-native/generated/src/models.js.map +1 -1
- package/dist/react-native/generated/src/outputModels.d.ts +46 -5
- package/dist/react-native/generated/src/outputModels.d.ts.map +1 -1
- package/dist/react-native/generated/src/outputModels.js.map +1 -1
- package/dist/react-native/generated/src/parameters.d.ts +18 -0
- package/dist/react-native/generated/src/parameters.d.ts.map +1 -1
- package/dist/react-native/generated/src/parameters.js.map +1 -1
- package/dist/react-native/generated/src/projectsClient.js +1 -1
- package/dist/react-native/generated/src/projectsClient.js.map +1 -1
- package/dist/react-native/generated/src/responses.d.ts +15 -1
- package/dist/react-native/generated/src/responses.d.ts.map +1 -1
- package/dist/react-native/generated/src/responses.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -379,6 +379,38 @@ const agent = await client.agents.createAgent("gpt-4o", {
|
|
|
379
379
|
console.log(`Created agent, agent ID: ${agent.id}`);
|
|
380
380
|
```
|
|
381
381
|
|
|
382
|
+
#### Create Agent With OpenAPI
|
|
383
|
+
|
|
384
|
+
OpenAPI specifications describe REST operations against a specific endpoint. Agents SDK can read an OpenAPI spec, create a function from it, and call that function against the REST endpoint without additional client-side execution.
|
|
385
|
+
Here is an example creating an OpenAPI tool (using anonymous authentication):
|
|
386
|
+
|
|
387
|
+
```ts snippet:createAgentWithOpenApi
|
|
388
|
+
import { ToolUtility } from "@azure/ai-projects";
|
|
389
|
+
|
|
390
|
+
// Read in OpenApi spec
|
|
391
|
+
const filePath = "./data/weatherOpenApi.json";
|
|
392
|
+
const openApiSpec = JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
|
393
|
+
// Define OpenApi function
|
|
394
|
+
const openApiFunction = {
|
|
395
|
+
name: "getWeather",
|
|
396
|
+
spec: openApiSpec,
|
|
397
|
+
description: "Retrieve weather information for a location",
|
|
398
|
+
auth: {
|
|
399
|
+
type: "anonymous",
|
|
400
|
+
},
|
|
401
|
+
default_params: ["format"], // optional
|
|
402
|
+
};
|
|
403
|
+
// Create OpenApi tool
|
|
404
|
+
const openApiTool = ToolUtility.createOpenApiTool(openApiFunction);
|
|
405
|
+
// Create agent with OpenApi tool
|
|
406
|
+
const agent = await client.agents.createAgent("gpt-4o-mini", {
|
|
407
|
+
name: "myAgent",
|
|
408
|
+
instructions: "You are a helpful agent",
|
|
409
|
+
tools: [openApiTool.definition],
|
|
410
|
+
});
|
|
411
|
+
console.log(`Created agent, agent ID: ${agent.id}`);
|
|
412
|
+
```
|
|
413
|
+
|
|
382
414
|
#### Create an Agent with Fabric
|
|
383
415
|
|
|
384
416
|
To enable your Agent to answer queries using Fabric data, use `FabricTool` along with a connection to the Fabric resource.
|
|
@@ -439,6 +471,21 @@ console.log(`Created agent, agent ID : ${agent.id}`);
|
|
|
439
471
|
const thread = await client.agents.createThread({ toolResources: fileSearchTool.resources });
|
|
440
472
|
```
|
|
441
473
|
|
|
474
|
+
#### List Threads
|
|
475
|
+
|
|
476
|
+
To list all threads attached to a given agent, use the list_threads API:
|
|
477
|
+
|
|
478
|
+
```ts snippet:listThreads
|
|
479
|
+
const threads = await client.agents.listThreads();
|
|
480
|
+
console.log(`Threads for agent ${agent.id}:`);
|
|
481
|
+
for await (const t of (await threads).data) {
|
|
482
|
+
console.log(`Thread ID: ${t.id}`);
|
|
483
|
+
console.log(`Created at: ${t.createdAt}`);
|
|
484
|
+
console.log(`Metadata: ${t.metadata}`);
|
|
485
|
+
console.log(`---- `);
|
|
486
|
+
}
|
|
487
|
+
```
|
|
488
|
+
|
|
442
489
|
#### Create Message
|
|
443
490
|
|
|
444
491
|
To create a message for assistant to process, you pass `user` as `role` and a question as `content`:
|
|
@@ -501,6 +548,116 @@ const message = await client.agents.createMessage(thread.id, {
|
|
|
501
548
|
console.log(`Created message, message ID: ${message.id}`);
|
|
502
549
|
```
|
|
503
550
|
|
|
551
|
+
#### Create Message with Image Inputs
|
|
552
|
+
|
|
553
|
+
You can send messages to Azure agents with image inputs in following ways:
|
|
554
|
+
|
|
555
|
+
- **Using an image stored as a uploaded file**
|
|
556
|
+
- **Using a public image accessible via URL**
|
|
557
|
+
- **Using a base64 encoded image string**
|
|
558
|
+
|
|
559
|
+
The following examples demonstrate each method:
|
|
560
|
+
|
|
561
|
+
##### Create message using uploaded image file
|
|
562
|
+
|
|
563
|
+
```ts snippet:imageInputWithFile
|
|
564
|
+
// Upload the local image file
|
|
565
|
+
const fileStream = fs.createReadStream(imagePath);
|
|
566
|
+
const imageFile = await client.agents.uploadFile(fileStream, "assistants", {
|
|
567
|
+
fileName: "image_file.png",
|
|
568
|
+
});
|
|
569
|
+
console.log(`Uploaded file, file ID: ${imageFile.id}`);
|
|
570
|
+
// Create a message with both text and image content
|
|
571
|
+
console.log("Creating message with image content...");
|
|
572
|
+
const inputMessage = "Hello, what is in the image?";
|
|
573
|
+
const content = [
|
|
574
|
+
{
|
|
575
|
+
type: "text",
|
|
576
|
+
text: inputMessage,
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
type: "image_file",
|
|
580
|
+
image_file: {
|
|
581
|
+
file_id: imageFile.id,
|
|
582
|
+
detail: "high",
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
];
|
|
586
|
+
const message = await client.agents.createMessage(thread.id, {
|
|
587
|
+
role: "user",
|
|
588
|
+
content: content,
|
|
589
|
+
});
|
|
590
|
+
console.log(`Created message, message ID: ${message.id}`);
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
##### Create message with an image URL input
|
|
594
|
+
|
|
595
|
+
```ts snippet:imageInputWithUrl
|
|
596
|
+
// Specify the public image URL
|
|
597
|
+
const imageUrl =
|
|
598
|
+
"https://github.com/Azure/azure-sdk-for-js/blob/0aa88ceb18d865726d423f73b8393134e783aea6/sdk/ai/ai-projects/data/image_file.png?raw=true";
|
|
599
|
+
// Create content directly referencing image URL
|
|
600
|
+
const inputMessage = "Hello, what is in the image?";
|
|
601
|
+
const content = [
|
|
602
|
+
{
|
|
603
|
+
type: "text",
|
|
604
|
+
text: inputMessage,
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
type: "image_url",
|
|
608
|
+
image_url: {
|
|
609
|
+
url: imageUrl,
|
|
610
|
+
detail: "high",
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
];
|
|
614
|
+
const message = await client.agents.createMessage(thread.id, {
|
|
615
|
+
role: "user",
|
|
616
|
+
content: content,
|
|
617
|
+
});
|
|
618
|
+
console.log(`Created message, message ID: ${message.id}`);
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
##### Create message with base64-encoded image input
|
|
622
|
+
|
|
623
|
+
```ts snippet:imageInputWithBase64
|
|
624
|
+
function imageToBase64DataUrl(imagePath: string, mimeType: string): string {
|
|
625
|
+
try {
|
|
626
|
+
// Read the image file as binary
|
|
627
|
+
const imageBuffer = fs.readFileSync(imagePath);
|
|
628
|
+
// Convert to base64
|
|
629
|
+
const base64Data = imageBuffer.toString("base64");
|
|
630
|
+
// Format as a data URL
|
|
631
|
+
return `data:${mimeType};base64,${base64Data}`;
|
|
632
|
+
} catch (error) {
|
|
633
|
+
console.error(`Error reading image file at ${imagePath}:`, error);
|
|
634
|
+
throw error;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
// Convert your image file to base64 format
|
|
638
|
+
const imageDataUrl = imageToBase64DataUrl(filePath, "image/png");
|
|
639
|
+
// Create a message with both text and image content
|
|
640
|
+
const inputMessage = "Hello, what is in the image?";
|
|
641
|
+
const content = [
|
|
642
|
+
{
|
|
643
|
+
type: "text",
|
|
644
|
+
text: inputMessage,
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
type: "image_url",
|
|
648
|
+
image_url: {
|
|
649
|
+
url: imageDataUrl,
|
|
650
|
+
detail: "high",
|
|
651
|
+
},
|
|
652
|
+
},
|
|
653
|
+
];
|
|
654
|
+
const message = await client.agents.createMessage(thread.id, {
|
|
655
|
+
role: "user",
|
|
656
|
+
content: content,
|
|
657
|
+
});
|
|
658
|
+
console.log(`Created message, message ID: ${message.id}`);
|
|
659
|
+
```
|
|
660
|
+
|
|
504
661
|
#### Create Run, Run_and_Process, or Stream
|
|
505
662
|
|
|
506
663
|
Here is an example of `createRun` and poll until the run is completed:
|
|
@@ -2,7 +2,7 @@ import type { OperationOptions, RequestParameters } from "@azure-rest/core-clien
|
|
|
2
2
|
import type { ThreadRunOutput } from "../customization/outputModels.js";
|
|
3
3
|
import type { AgentEventMessageStream } from "./streamingModels.js";
|
|
4
4
|
import type { AgentThreadCreationOptions, CreateAgentOptions, CreateAndRunThreadOptions, CreateRunOptions, UpdateAgentOptions, UpdateAgentThreadOptions, VectorStoreFileStatusFilter, VectorStoreOptions, VectorStoreUpdateOptions } from "../customization/models.js";
|
|
5
|
-
import type { ListMessagesQueryParamProperties, ListFilesQueryParamProperties } from "../customization/parameters.js";
|
|
5
|
+
import type { ListMessagesQueryParamProperties, ListFilesQueryParamProperties, ListThreadsQueryParamProperties } from "../customization/parameters.js";
|
|
6
6
|
import type { CreateVectorStoreFileBatchOptions, CreateVectorStoreFileOptions } from "./vectorStoresModels.js";
|
|
7
7
|
/**
|
|
8
8
|
* Optional request parameters support passing headers, abort signal, etc.
|
|
@@ -114,6 +114,11 @@ export interface UpdateAgentThreadOptionalParams extends UpdateAgentThreadOption
|
|
|
114
114
|
*/
|
|
115
115
|
export interface DeleteAgentThreadOptionalParams extends OperationOptions {
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Optional parameters for deleting an agent thread.
|
|
119
|
+
*/
|
|
120
|
+
export interface ListAgentThreadOptionalParams extends ListThreadsQueryParamProperties, OperationOptions {
|
|
121
|
+
}
|
|
117
122
|
/**
|
|
118
123
|
* Optional parameters for getting an run step.
|
|
119
124
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customModels.d.ts","sourceRoot":"","sources":["../../../src/agents/customModels.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"customModels.d.ts","sourceRoot":"","sources":["../../../src/agents/customModels.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB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,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,EACvC,gBAAgB;CAAG;AAEvB;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB,EAAE,gBAAgB;CAAG;AAE1F;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;CAAG;AAEtE;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;CAAG;AAEnE;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB,EAAE,gBAAgB;CAAG;AAE1F;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,6BAA6B,EAAE,gBAAgB;CAAG;AAEnG;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;CAAG;AAErE;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAElE;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB,EAAE,oBAAoB;IACtF,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customModels.js","sourceRoot":"","sources":["../../../src/agents/customModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions, RequestParameters } from \"@azure-rest/core-client\";\nimport type { ThreadRunOutput } from \"../customization/outputModels.js\";\nimport type { AgentEventMessageStream } from \"./streamingModels.js\";\nimport type {\n AgentThreadCreationOptions,\n CreateAgentOptions,\n CreateAndRunThreadOptions,\n CreateRunOptions,\n UpdateAgentOptions,\n UpdateAgentThreadOptions,\n VectorStoreFileStatusFilter,\n VectorStoreOptions,\n VectorStoreUpdateOptions,\n} from \"../customization/models.js\";\nimport type {\n ListMessagesQueryParamProperties,\n ListFilesQueryParamProperties,\n} from \"../customization/parameters.js\";\nimport type {\n CreateVectorStoreFileBatchOptions,\n CreateVectorStoreFileOptions,\n} from \"./vectorStoresModels.js\";\n\n/**\n * Optional request parameters support passing headers, abort signal, etc.\n */\nexport type OptionalRequestParameters = Pick<\n RequestParameters,\n \"headers\" | \"timeout\" | \"abortSignal\" | \"tracingOptions\"\n>;\n\n/**\n * Request options for list requests.\n */\nexport interface ListQueryParameters {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n */\n limit?: number;\n\n /**\n * Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.\n */\n order?: \"asc\" | \"desc\";\n\n /**\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 */\n after?: string;\n\n /**\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 */\n before?: string;\n}\n\n/**\n * Options for configuring polling behavior.\n */\nexport interface PollingOptions {\n /**\n * The interval, in milliseconds, to wait between polling attempts. If not specified, a default interval of 1000ms will be used.\n */\n sleepIntervalInMs?: number;\n}\n\n/**\n * Optional parameters configuring polling behavior.\n */\nexport interface PollingOptionsParams {\n /** Options for configuring polling behavior. */\n pollingOptions?: PollingOptions;\n}\n\n/**\n * Agent run response with support to stream.\n */\nexport type AgentRunResponse = PromiseLike<ThreadRunOutput> & {\n /**\n * Function to start streaming the agent event messages.\n * @returns A promise that resolves to an AgentEventMessageStream.\n */\n stream: () => Promise<AgentEventMessageStream>;\n};\n\n/**\n * Optional parameters for creating and running a thread, excluding the assistantId.\n */\nexport type CreateRunOptionalParams = Omit<CreateRunOptions & OperationOptions, \"assistantId\"> &\n OperationOptions;\n\n/**\n * Optional parameters for creating and running a thread, excluding the assistantId.\n */\nexport type CreateAndRunThreadOptionalParams = Omit<CreateAndRunThreadOptions, \"assistantId\"> &\n OperationOptions;\n\n/**\n * Optional parameters for listing run queries.\n */\nexport interface ListRunQueryOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for getting a run.\n */\nexport interface GetRunOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for canceling a run.\n */\nexport interface CancelRunOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for submitting tool outputs to a run.\n */\nexport interface SubmitToolOutputsToRunOptionalParams extends OperationOptions {\n /**\n * Whether to stream the tool outputs.\n */\n stream?: boolean;\n}\n\n/**\n * Optional parameters for updating a run.\n */\nexport interface UpdateRunOptionalParams extends OperationOptions {\n /** Metadata to update in the run. */\n metadata?: Record<string, string> | null;\n}\n\n/**\n * Optional parameters for creating an agent thread.\n */\nexport interface CreateAgentThreadOptionalParams\n extends AgentThreadCreationOptions,\n OperationOptions {}\n\n/**\n * Optional parameters for getting an agent thread.\n */\nexport interface GetAgentThreadOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for updating an agent thread.\n */\nexport interface UpdateAgentThreadOptionalParams\n extends UpdateAgentThreadOptions,\n OperationOptions {}\n\n/**\n * Optional parameters for deleting an agent thread.\n */\nexport interface DeleteAgentThreadOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting an run step.\n */\nexport interface GetRunStepOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing run steps.\n */\nexport interface ListRunStepsOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for creating a message.\n */\nexport interface CreateMessageOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for updating a message.\n */\nexport interface UpdateMessageOptionalParams extends OperationOptions {\n /** Metadata to update in the message. */\n metadata?: Record<string, string> | null;\n}\n\n/**\n * Optional parameters for listing messages.\n */\nexport interface ListMessagesOptionalParams\n extends ListMessagesQueryParamProperties,\n OperationOptions {}\n\n/**\n * Optional parameters creating vector store.\n */\nexport interface CreateVectorStoreOptionalParams\n extends VectorStoreOptions,\n OperationOptions,\n PollingOptionsParams {}\n\n/**\n * Optional parameters for listing vector stores.\n */\nexport interface ListVectorStoresOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for updating a vector store.\n */\nexport interface UpdateVectorStoreOptionalParams\n extends VectorStoreUpdateOptions,\n OperationOptions {}\n\n/**\n * Optional parameters for deleting a vector store.\n */\nexport interface DeleteVectorStoreOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting a vector store.\n */\nexport interface GetVectorStoreOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing vector store files.\n */\nexport interface ListVectorStoreFilesOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for creating a vector store file.\n */\nexport interface CreateVectorStoreFileOptionalParams\n extends CreateVectorStoreFileOptions,\n OperationOptions,\n PollingOptionsParams {}\n\n/**\n * Optional parameters for getting a vector store file.\n */\nexport interface GetVectorStoreFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for deleting a vector store file.\n */\nexport interface DeleteVectorStoreFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing vector store file batches.\n */\nexport interface ListVectorStoreFileBatchFilesOptionalParams\n extends ListQueryParameters,\n OperationOptions {\n /** Filter by file status. */\n filter?: VectorStoreFileStatusFilter;\n}\n\n/**\n * Optional parameters for getting a vector store file batch.\n */\nexport interface GetVectorStoreFileBatchOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for canceling a vector store file batch.\n */\nexport interface CancelVectorStoreFileBatchOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for creating a vector store file batch.\n */\nexport interface CreateVectorStoreFileBatchOptionalParams\n extends CreateVectorStoreFileBatchOptions,\n OperationOptions,\n PollingOptionsParams {}\n\n/**\n * Optional parameters for creating agent.\n */\nexport interface CreateAgentOptionalParams\n extends Omit<CreateAgentOptions, \"model\">,\n OperationOptions {}\n\n/**\n * Optional parameters for updating agent.\n */\nexport interface UpdateAgentOptionalParams extends UpdateAgentOptions, OperationOptions {}\n\n/**\n * Optional parameters for deleting agent.\n */\nexport interface DeleteAgentOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting agent.\n */\nexport interface GetAgentOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing agents.\n */\nexport interface ListAgentsOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for listing files.\n */\nexport interface ListFilesOptionalParams extends ListFilesQueryParamProperties, OperationOptions {}\n\n/**\n * Optional parameters for deleting a file.\n */\nexport interface DeleteFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting a file.\n */\nexport interface GetFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting file content.\n */\nexport interface GetFileContentOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for uploading a file.\n */\nexport interface UploadFileOptionalParams extends OperationOptions, PollingOptionsParams {\n /** The name of the file. */\n fileName?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"customModels.js","sourceRoot":"","sources":["../../../src/agents/customModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions, RequestParameters } from \"@azure-rest/core-client\";\nimport type { ThreadRunOutput } from \"../customization/outputModels.js\";\nimport type { AgentEventMessageStream } from \"./streamingModels.js\";\nimport type {\n AgentThreadCreationOptions,\n CreateAgentOptions,\n CreateAndRunThreadOptions,\n CreateRunOptions,\n UpdateAgentOptions,\n UpdateAgentThreadOptions,\n VectorStoreFileStatusFilter,\n VectorStoreOptions,\n VectorStoreUpdateOptions,\n} from \"../customization/models.js\";\nimport type {\n ListMessagesQueryParamProperties,\n ListFilesQueryParamProperties,\n ListThreadsQueryParamProperties,\n} from \"../customization/parameters.js\";\nimport type {\n CreateVectorStoreFileBatchOptions,\n CreateVectorStoreFileOptions,\n} from \"./vectorStoresModels.js\";\n\n/**\n * Optional request parameters support passing headers, abort signal, etc.\n */\nexport type OptionalRequestParameters = Pick<\n RequestParameters,\n \"headers\" | \"timeout\" | \"abortSignal\" | \"tracingOptions\"\n>;\n\n/**\n * Request options for list requests.\n */\nexport interface ListQueryParameters {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n */\n limit?: number;\n\n /**\n * Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.\n */\n order?: \"asc\" | \"desc\";\n\n /**\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 */\n after?: string;\n\n /**\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 */\n before?: string;\n}\n\n/**\n * Options for configuring polling behavior.\n */\nexport interface PollingOptions {\n /**\n * The interval, in milliseconds, to wait between polling attempts. If not specified, a default interval of 1000ms will be used.\n */\n sleepIntervalInMs?: number;\n}\n\n/**\n * Optional parameters configuring polling behavior.\n */\nexport interface PollingOptionsParams {\n /** Options for configuring polling behavior. */\n pollingOptions?: PollingOptions;\n}\n\n/**\n * Agent run response with support to stream.\n */\nexport type AgentRunResponse = PromiseLike<ThreadRunOutput> & {\n /**\n * Function to start streaming the agent event messages.\n * @returns A promise that resolves to an AgentEventMessageStream.\n */\n stream: () => Promise<AgentEventMessageStream>;\n};\n\n/**\n * Optional parameters for creating and running a thread, excluding the assistantId.\n */\nexport type CreateRunOptionalParams = Omit<CreateRunOptions & OperationOptions, \"assistantId\"> &\n OperationOptions;\n\n/**\n * Optional parameters for creating and running a thread, excluding the assistantId.\n */\nexport type CreateAndRunThreadOptionalParams = Omit<CreateAndRunThreadOptions, \"assistantId\"> &\n OperationOptions;\n\n/**\n * Optional parameters for listing run queries.\n */\nexport interface ListRunQueryOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for getting a run.\n */\nexport interface GetRunOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for canceling a run.\n */\nexport interface CancelRunOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for submitting tool outputs to a run.\n */\nexport interface SubmitToolOutputsToRunOptionalParams extends OperationOptions {\n /**\n * Whether to stream the tool outputs.\n */\n stream?: boolean;\n}\n\n/**\n * Optional parameters for updating a run.\n */\nexport interface UpdateRunOptionalParams extends OperationOptions {\n /** Metadata to update in the run. */\n metadata?: Record<string, string> | null;\n}\n\n/**\n * Optional parameters for creating an agent thread.\n */\nexport interface CreateAgentThreadOptionalParams\n extends AgentThreadCreationOptions,\n OperationOptions {}\n\n/**\n * Optional parameters for getting an agent thread.\n */\nexport interface GetAgentThreadOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for updating an agent thread.\n */\nexport interface UpdateAgentThreadOptionalParams\n extends UpdateAgentThreadOptions,\n OperationOptions {}\n\n/**\n * Optional parameters for deleting an agent thread.\n */\nexport interface DeleteAgentThreadOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for deleting an agent thread.\n */\nexport interface ListAgentThreadOptionalParams\n extends ListThreadsQueryParamProperties,\n OperationOptions {}\n/**\n * Optional parameters for getting an run step.\n */\nexport interface GetRunStepOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing run steps.\n */\nexport interface ListRunStepsOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for creating a message.\n */\nexport interface CreateMessageOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for updating a message.\n */\nexport interface UpdateMessageOptionalParams extends OperationOptions {\n /** Metadata to update in the message. */\n metadata?: Record<string, string> | null;\n}\n\n/**\n * Optional parameters for listing messages.\n */\nexport interface ListMessagesOptionalParams\n extends ListMessagesQueryParamProperties,\n OperationOptions {}\n\n/**\n * Optional parameters creating vector store.\n */\nexport interface CreateVectorStoreOptionalParams\n extends VectorStoreOptions,\n OperationOptions,\n PollingOptionsParams {}\n\n/**\n * Optional parameters for listing vector stores.\n */\nexport interface ListVectorStoresOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for updating a vector store.\n */\nexport interface UpdateVectorStoreOptionalParams\n extends VectorStoreUpdateOptions,\n OperationOptions {}\n\n/**\n * Optional parameters for deleting a vector store.\n */\nexport interface DeleteVectorStoreOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting a vector store.\n */\nexport interface GetVectorStoreOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing vector store files.\n */\nexport interface ListVectorStoreFilesOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for creating a vector store file.\n */\nexport interface CreateVectorStoreFileOptionalParams\n extends CreateVectorStoreFileOptions,\n OperationOptions,\n PollingOptionsParams {}\n\n/**\n * Optional parameters for getting a vector store file.\n */\nexport interface GetVectorStoreFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for deleting a vector store file.\n */\nexport interface DeleteVectorStoreFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing vector store file batches.\n */\nexport interface ListVectorStoreFileBatchFilesOptionalParams\n extends ListQueryParameters,\n OperationOptions {\n /** Filter by file status. */\n filter?: VectorStoreFileStatusFilter;\n}\n\n/**\n * Optional parameters for getting a vector store file batch.\n */\nexport interface GetVectorStoreFileBatchOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for canceling a vector store file batch.\n */\nexport interface CancelVectorStoreFileBatchOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for creating a vector store file batch.\n */\nexport interface CreateVectorStoreFileBatchOptionalParams\n extends CreateVectorStoreFileBatchOptions,\n OperationOptions,\n PollingOptionsParams {}\n\n/**\n * Optional parameters for creating agent.\n */\nexport interface CreateAgentOptionalParams\n extends Omit<CreateAgentOptions, \"model\">,\n OperationOptions {}\n\n/**\n * Optional parameters for updating agent.\n */\nexport interface UpdateAgentOptionalParams extends UpdateAgentOptions, OperationOptions {}\n\n/**\n * Optional parameters for deleting agent.\n */\nexport interface DeleteAgentOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting agent.\n */\nexport interface GetAgentOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for listing agents.\n */\nexport interface ListAgentsOptionalParams extends ListQueryParameters, OperationOptions {}\n\n/**\n * Optional parameters for listing files.\n */\nexport interface ListFilesOptionalParams extends ListFilesQueryParamProperties, OperationOptions {}\n\n/**\n * Optional parameters for deleting a file.\n */\nexport interface DeleteFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting a file.\n */\nexport interface GetFileOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for getting file content.\n */\nexport interface GetFileContentOptionalParams extends OperationOptions {}\n\n/**\n * Optional parameters for uploading a file.\n */\nexport interface UploadFileOptionalParams extends OperationOptions, PollingOptionsParams {\n /** The name of the file. */\n fileName?: string;\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Client, type StreamableMethod } from "@azure-rest/core-client";
|
|
2
2
|
import type { FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput } from "../customization/outputModels.js";
|
|
3
|
-
import type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput } from "../customization/outputModels.js";
|
|
3
|
+
import type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput, OpenAIPageableListOfAgentThreadOutput } from "../customization/outputModels.js";
|
|
4
4
|
import type { FilePurpose } from "../customization/models.js";
|
|
5
|
-
import type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams } from "./customModels.js";
|
|
5
|
+
import type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams, ListAgentThreadOptionalParams } from "./customModels.js";
|
|
6
6
|
import type { ThreadMessageOptions, ToolOutput } from "../customization/models.js";
|
|
7
7
|
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
8
8
|
/**
|
|
@@ -27,6 +27,8 @@ export interface AgentsOperations {
|
|
|
27
27
|
updateThread: (threadId: string, options?: UpdateAgentThreadOptionalParams) => Promise<AgentThreadOutput>;
|
|
28
28
|
/** Deletes an existing thread. */
|
|
29
29
|
deleteThread: (threadId: string, options?: DeleteAgentThreadOptionalParams) => Promise<ThreadDeletionStatusOutput>;
|
|
30
|
+
/** Gets a list of threads that were previously created. */
|
|
31
|
+
listThreads: (options?: ListAgentThreadOptionalParams) => Promise<OpenAIPageableListOfAgentThreadOutput>;
|
|
30
32
|
/** Creates and starts a new run of the specified thread using the specified agent. */
|
|
31
33
|
createRun: (threadId: string, assistantId: string, options?: CreateRunOptionalParams) => AgentRunResponse;
|
|
32
34
|
/** Gets a list of runs for a specified thread. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,mCAAmC,EACnC,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B,uCAAuC,EACvC,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EACzB,WAAW,EACX,+BAA+B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,mCAAmC,EACnC,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B,uCAAuC,EACvC,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EACzB,WAAW,EACX,+BAA+B,EAC/B,qCAAqC,EACtC,MAAM,kCAAkC,CAAC;AAqB1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAwB9D,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,oCAAoC,EACpC,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EAExB,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAG3B,+BAA+B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,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,2CAA2C,KAClD,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACxD,iDAAiD;IACjD,iCAAiC,EAAE,CACjC,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wCAAwC,KAC/C,UAAU,CAAC,cAAc,CAAC,0BAA0B,CAAC,EAAE,0BAA0B,CAAC,CAAC;IAExF,gDAAgD;IAChD,UAAU,EAAE,CACV,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,KAC/B,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5B,kDAAkD;IAClD,YAAY,EAAE,CACZ,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,0BAA0B,KACjC,OAAO,CAAC,iCAAiC,CAAC,CAAC;CACjD;AAwID,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAIrE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { createAgent, deleteAgent, getAgent, listAgents, updateAgent } from "./assistants.js";
|
|
4
4
|
import { deleteFile, getFile, getFileContent, listFiles, uploadFile, uploadFileAndPoll, } from "./files.js";
|
|
5
|
-
import { createThread, deleteThread, getThread, updateThread } from "./threads.js";
|
|
5
|
+
import { createThread, deleteThread, getThread, listThreads, updateThread } from "./threads.js";
|
|
6
6
|
import { cancelRun, createRun, createThreadAndRun, getRun, listRuns, submitToolOutputsToRun, updateRun, } from "./runs.js";
|
|
7
7
|
import { createMessage, listMessages, updateMessage } from "./messages.js";
|
|
8
8
|
import { createVectorStore, createVectorStoreAndPoll, deleteVectorStore, getVectorStore, listVectorStores, modifyVectorStore, } from "./vectorStores.js";
|
|
@@ -20,6 +20,7 @@ function getAgents(context) {
|
|
|
20
20
|
getThread: (threadId, options) => getThread(context, threadId, options),
|
|
21
21
|
updateThread: (threadId, options) => updateThread(context, threadId, options),
|
|
22
22
|
deleteThread: (threadId, options) => deleteThread(context, threadId, options),
|
|
23
|
+
listThreads: (options) => listThreads(context, options),
|
|
23
24
|
createRun: (threadId, assistantId, options) => createRun(context, threadId, assistantId, options !== null && options !== void 0 ? options : {}),
|
|
24
25
|
listRuns: (threadId, options) => listRuns(context, threadId, options !== null && options !== void 0 ? options : {}),
|
|
25
26
|
getRun: (threadId, runId, options) => getRun(context, threadId, runId, options),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA4BlC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EACL,UAAU,EACV,OAAO,EACP,cAAc,EACd,SAAS,EACT,UAAU,EACV,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EACL,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,QAAQ,EACR,sBAAsB,EACtB,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE3E,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,wBAAwB,C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,CAC7B,aAAqB,EACrB,OAAe,EACf,OAAqD,EACrD,EAAE,CAAC,6BAA6B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5E,iCAAiC,EAAE,CACjC,aAAqB,EACrB,OAAkD,EAClD,EAAE,CAAC,iCAAiC,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAEvE,UAAU,EAAE,CACV,QAAgB,EAChB,KAAa,EACb,MAAc,EACd,OAAkC,EAClC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;QAC1D,YAAY,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAoC,EAAE,EAAE,CACtF,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,yBACK,SAAS,CAAC,OAAO,CAAC,EACrB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { type Client, type StreamableMethod } from \"@azure-rest/core-client\";\nimport type {\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n} from \"../customization/outputModels.js\";\nimport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n} from \"../customization/outputModels.js\";\nimport { createAgent, deleteAgent, getAgent, listAgents, updateAgent } from \"./assistants.js\";\nimport {\n deleteFile,\n getFile,\n getFileContent,\n listFiles,\n uploadFile,\n uploadFileAndPoll,\n} from \"./files.js\";\nimport { createThread, deleteThread, getThread, updateThread } from \"./threads.js\";\nimport {\n cancelRun,\n createRun,\n createThreadAndRun,\n getRun,\n listRuns,\n submitToolOutputsToRun,\n updateRun,\n} from \"./runs.js\";\nimport { createMessage, listMessages, updateMessage } from \"./messages.js\";\nimport type { FilePurpose } from \"../customization/models.js\";\nimport {\n createVectorStore,\n createVectorStoreAndPoll,\n deleteVectorStore,\n getVectorStore,\n listVectorStores,\n modifyVectorStore,\n} from \"./vectorStores.js\";\nimport { getRunStep, listRunSteps } from \"./runSteps.js\";\nimport {\n createVectorStoreFile,\n createVectorStoreFileAndPoll,\n deleteVectorStoreFile,\n getVectorStoreFile,\n listVectorStoreFiles,\n} from \"./vectorStoresFiles.js\";\nimport {\n cancelVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n getVectorStoreFileBatch,\n listVectorStoreFileBatchFiles,\n} from \"./vectorStoresFileBatches.js\";\nimport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n} from \"./customModels.js\";\nimport type { ThreadMessageOptions, ToolOutput } from \"../customization/models.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/**\n * Agents Interface Contains operations for creating, listing, updating, and deleting agents, threads, runs, messages, and files.\n */\nexport interface AgentsOperations {\n /** Creates a new agent. */\n createAgent: (model: string, options?: CreateAgentOptionalParams) => Promise<AgentOutput>;\n\n /** Gets a list of agents that were previously created. */\n listAgents: (options?: ListAgentsOptionalParams) => Promise<OpenAIPageableListOfAgentOutput>;\n /** Retrieves an existing agent. */\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) => Promise<AgentOutput>;\n /** Modifies an existing agent. */\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) => Promise<AgentOutput>;\n /** Deletes an agent. */\n deleteAgent: (\n assistantId: string,\n options?: DeleteAgentOptionalParams,\n ) => Promise<AgentDeletionStatusOutput>;\n\n /** Creates a new thread. Threads contain messages and can be run by agents. */\n createThread: (options?: CreateAgentThreadOptionalParams) => Promise<AgentThreadOutput>;\n /** Gets information about an existing thread. */\n getThread: (\n threadId: string,\n options?: GetAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Modifies an existing thread. */\n updateThread: (\n threadId: string,\n options?: UpdateAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Deletes an existing thread. */\n deleteThread: (\n threadId: string,\n options?: DeleteAgentThreadOptionalParams,\n ) => Promise<ThreadDeletionStatusOutput>;\n\n /** Creates and starts a new run of the specified thread using the specified agent. */\n createRun: (\n threadId: string,\n assistantId: string,\n options?: CreateRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Gets a list of runs for a specified thread. */\n listRuns: (\n threadId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadRunOutput>;\n /** Gets an existing run from an existing thread. */\n getRun: (\n threadId: string,\n runId: string,\n options?: GetRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Modifies an existing thread run. */\n updateRun: (\n threadId: string,\n runId: string,\n options?: UpdateRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Cancels a run of an in progress thread. */\n cancelRun: (\n threadId: string,\n runId: string,\n options?: CancelRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Creates a new thread and immediately starts a run of that thread. */\n createThreadAndRun: (\n assistantId: string,\n options?: CreateAndRunThreadOptionalParams,\n ) => AgentRunResponse;\n\n /** Creates a new message on a specified thread. */\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n /** Gets a list of messages that exist on a thread. */\n listMessages: (\n threadId: string,\n options?: ListMessagesOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadMessageOutput>;\n /** Modifies an existing message on an existing thread. */\n updateMessage: (\n threadId: string,\n messageId: string,\n options?: UpdateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n\n /** Gets a list of previously uploaded files. */\n listFiles: (options?: ListFilesOptionalParams) => Promise<FileListResponseOutput>;\n /** Uploads a file for use by other operations. */\n uploadFile: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n\n /** Uploads a file for use by other operations. */\n uploadFileAndPoll: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n /** Delete a previously uploaded file. */\n deleteFile: (\n fileId: string,\n options?: DeleteFileOptionalParams,\n ) => Promise<FileDeletionStatusOutput>;\n /** Returns information about a specific file. Does not retrieve file content. */\n getFile: (fileId: string, options?: GetFileOptionalParams) => Promise<OpenAIFileOutput>;\n /** Returns the content of a specific file. */\n getFileContent: (\n fileId: string,\n options?: GetFileContentOptionalParams,\n ) => StreamableMethod<string | Uint8Array>;\n\n /** Returns a list of vector stores. */\n listVectorStores: (\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreOutput>;\n /** Creates a vector store. */\n createVectorStore: (\n options?: CreateVectorStoreOptionalParams,\n ) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;\n /** Returns the vector store object object matching the specific ID. */\n getVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** The ID of the vector store to modify. */\n modifyVectorStore: (\n vectorStoreId: string,\n options?: UpdateVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** Deletes the vector store object matching the specified ID. */\n deleteVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreDeletionStatusOutput>;\n\n /** Create vector store and poll. */\n createVectorStoreAndPoll: (\n options?: CreateVectorStoreOptionalParams,\n ) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;\n\n /** Create a vector store file by attching a file to a vector store. */\n createVectorStoreFile: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n /** Retrieves a vector store file. */\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileOutput>;\n /** Returns a list of vector store files. */\n listVectorStoreFiles: (\n vectorStoreId: string,\n options?: ListVectorStoreFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /**\n * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\n * To delete the file, use the delete file endpoint.\n */\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileDeletionStatusOutput>;\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n\n /** Create a vector store file batch. */\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n /** Retrieve a vector store file batch. */\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Returns a list of vector store files in a batch. */\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /** Create a vector store file batch and poll. */\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n\n /** Gets a single run step from a thread run. */\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => Promise<RunStepOutput>;\n /** Gets a list of run steps from a thread run. */\n listRunSteps: (\n threadId: string,\n runId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfRunStepOutput>;\n}\n\nfunction getAgents(context: Client): AgentsOperations {\n return {\n createAgent: (model: string, options?: CreateAgentOptionalParams) =>\n createAgent(context, model, options),\n listAgents: (options?: ListAgentsOptionalParams) => listAgents(context, options),\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) =>\n getAgent(context, assistantId, options),\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) =>\n updateAgent(context, assistantId, options),\n deleteAgent: (assistantId: string, options?: DeleteAgentOptionalParams) =>\n deleteAgent(context, assistantId, options),\n\n createThread: (options?: CreateAgentThreadOptionalParams) => createThread(context, options),\n getThread: (threadId: string, options?: GetAgentThreadOptionalParams) =>\n getThread(context, threadId, options),\n updateThread: (threadId: string, options?: UpdateAgentThreadOptionalParams) =>\n updateThread(context, threadId, options),\n deleteThread: (threadId: string, options?: DeleteAgentThreadOptionalParams) =>\n deleteThread(context, threadId, options),\n\n createRun: (threadId: string, assistantId: string, options?: CreateRunOptionalParams) =>\n createRun(context, threadId, assistantId, options ?? {}),\n listRuns: (threadId: string, options?: ListRunQueryOptionalParams) =>\n listRuns(context, threadId, options ?? {}),\n getRun: (threadId: string, runId: string, options?: GetRunOptionalParams) =>\n getRun(context, threadId, runId, options),\n updateRun: (threadId: string, runId: string, options?: UpdateRunOptionalParams) =>\n updateRun(context, threadId, runId, options),\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => submitToolOutputsToRun(context, threadId, runId, toolOutputs, options),\n cancelRun: (threadId: string, runId: string, options?: CancelRunOptionalParams) =>\n cancelRun(context, threadId, runId, options),\n createThreadAndRun: (assistantId: string, options?: CreateAndRunThreadOptionalParams) =>\n createThreadAndRun(context, assistantId, options ?? {}),\n\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => createMessage(context, threadId, messageOptions, options),\n listMessages: (threadId: string, options?: ListMessagesOptionalParams) =>\n listMessages(context, threadId, options),\n updateMessage: (threadId: string, messageId: string, options?: UpdateMessageOptionalParams) =>\n updateMessage(context, threadId, messageId, options),\n\n listFiles: (options?: ListFilesOptionalParams) => listFiles(context, options),\n uploadFile: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFile(context, content, purpose, options),\n uploadFileAndPoll: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFileAndPoll(context, content, purpose, options),\n deleteFile: (fileId: string, options?: DeleteFileOptionalParams) =>\n deleteFile(context, fileId, options),\n getFile: (fileId: string, options?: GetFileOptionalParams) => getFile(context, fileId, options),\n getFileContent: (fileId: string, options?: GetFileContentOptionalParams) =>\n getFileContent(context, fileId, options),\n\n listVectorStores: (options?: ListVectorStoresOptionalParams) =>\n listVectorStores(context, options),\n createVectorStore: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStore(context, options),\n getVectorStore: (vectorStoreId: string, options?: GetVectorStoreOptionalParams) =>\n getVectorStore(context, vectorStoreId, options),\n modifyVectorStore: (vectorStoreId: string, options?: UpdateVectorStoreOptionalParams) =>\n modifyVectorStore(context, vectorStoreId, options),\n deleteVectorStore: (vectorStoreId: string, options?: DeleteVectorStoreOptionalParams) =>\n deleteVectorStore(context, vectorStoreId, options),\n createVectorStoreAndPoll: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStoreAndPoll(context, options),\n\n createVectorStoreFile: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) =>\n createVectorStoreFile(context, vectorStoreId, options),\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => getVectorStoreFile(context, vectorStoreId, fileId, options),\n listVectorStoreFiles: (vectorStoreId: string, options?: ListVectorStoreFilesOptionalParams) =>\n listVectorStoreFiles(context, vectorStoreId, options),\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => deleteVectorStoreFile(context, vectorStoreId, fileId, options),\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFileAndPoll(context, vectorStoreId, options),\n\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatch(context, vectorStoreId, options),\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => getVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options),\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatchAndPoll(context, vectorStoreId, options),\n\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => getRunStep(context, threadId, runId, stepId, options),\n listRunSteps: (threadId: string, runId: string, options?: ListRunStepsOptionalParams) =>\n listRunSteps(context, threadId, runId, options),\n };\n}\n\nexport function getAgentsOperations(context: Client): AgentsOperations {\n return {\n ...getAgents(context),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA6BlC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EACL,UAAU,EACV,OAAO,EACP,cAAc,EACd,SAAS,EACT,UAAU,EACV,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EACL,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,QAAQ,EACR,sBAAsB,EACtB,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE3E,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,iCAAiC,EACjC,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,8BAA8B,CAAC;AA0RtC,SAAS,SAAS,CAAC,OAAe;IAChC,OAAO;QACL,WAAW,EAAE,CAAC,KAAa,EAAE,OAAmC,EAAE,EAAE,CAClE,WAAW,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;QACtC,UAAU,EAAE,CAAC,OAAkC,EAAE,EAAE,CAAC,U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C;QAEvE,UAAU,EAAE,CACV,QAAgB,EAChB,KAAa,EACb,MAAc,EACd,OAAkC,EAClC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;QAC1D,YAAY,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAoC,EAAE,EAAE,CACtF,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,yBACK,SAAS,CAAC,OAAO,CAAC,EACrB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { type Client, type StreamableMethod } from \"@azure-rest/core-client\";\nimport type {\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n} from \"../customization/outputModels.js\";\nimport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n OpenAIPageableListOfAgentThreadOutput,\n} from \"../customization/outputModels.js\";\nimport { createAgent, deleteAgent, getAgent, listAgents, updateAgent } from \"./assistants.js\";\nimport {\n deleteFile,\n getFile,\n getFileContent,\n listFiles,\n uploadFile,\n uploadFileAndPoll,\n} from \"./files.js\";\nimport { createThread, deleteThread, getThread, listThreads, updateThread } from \"./threads.js\";\nimport {\n cancelRun,\n createRun,\n createThreadAndRun,\n getRun,\n listRuns,\n submitToolOutputsToRun,\n updateRun,\n} from \"./runs.js\";\nimport { createMessage, listMessages, updateMessage } from \"./messages.js\";\nimport type { FilePurpose } from \"../customization/models.js\";\nimport {\n createVectorStore,\n createVectorStoreAndPoll,\n deleteVectorStore,\n getVectorStore,\n listVectorStores,\n modifyVectorStore,\n} from \"./vectorStores.js\";\nimport { getRunStep, listRunSteps } from \"./runSteps.js\";\nimport {\n createVectorStoreFile,\n createVectorStoreFileAndPoll,\n deleteVectorStoreFile,\n getVectorStoreFile,\n listVectorStoreFiles,\n} from \"./vectorStoresFiles.js\";\nimport {\n cancelVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n getVectorStoreFileBatch,\n listVectorStoreFileBatchFiles,\n} from \"./vectorStoresFileBatches.js\";\nimport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n ListAgentThreadOptionalParams,\n} from \"./customModels.js\";\nimport type { ThreadMessageOptions, ToolOutput } from \"../customization/models.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/**\n * Agents Interface Contains operations for creating, listing, updating, and deleting agents, threads, runs, messages, and files.\n */\nexport interface AgentsOperations {\n /** Creates a new agent. */\n createAgent: (model: string, options?: CreateAgentOptionalParams) => Promise<AgentOutput>;\n\n /** Gets a list of agents that were previously created. */\n listAgents: (options?: ListAgentsOptionalParams) => Promise<OpenAIPageableListOfAgentOutput>;\n /** Retrieves an existing agent. */\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) => Promise<AgentOutput>;\n /** Modifies an existing agent. */\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) => Promise<AgentOutput>;\n /** Deletes an agent. */\n deleteAgent: (\n assistantId: string,\n options?: DeleteAgentOptionalParams,\n ) => Promise<AgentDeletionStatusOutput>;\n\n /** Creates a new thread. Threads contain messages and can be run by agents. */\n createThread: (options?: CreateAgentThreadOptionalParams) => Promise<AgentThreadOutput>;\n /** Gets information about an existing thread. */\n getThread: (\n threadId: string,\n options?: GetAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Modifies an existing thread. */\n updateThread: (\n threadId: string,\n options?: UpdateAgentThreadOptionalParams,\n ) => Promise<AgentThreadOutput>;\n /** Deletes an existing thread. */\n deleteThread: (\n threadId: string,\n options?: DeleteAgentThreadOptionalParams,\n ) => Promise<ThreadDeletionStatusOutput>;\n /** Gets a list of threads that were previously created. */\n listThreads: (\n options?: ListAgentThreadOptionalParams,\n ) => Promise<OpenAIPageableListOfAgentThreadOutput>;\n\n /** Creates and starts a new run of the specified thread using the specified agent. */\n createRun: (\n threadId: string,\n assistantId: string,\n options?: CreateRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Gets a list of runs for a specified thread. */\n listRuns: (\n threadId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadRunOutput>;\n /** Gets an existing run from an existing thread. */\n getRun: (\n threadId: string,\n runId: string,\n options?: GetRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Modifies an existing thread run. */\n updateRun: (\n threadId: string,\n runId: string,\n options?: UpdateRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => AgentRunResponse;\n\n /** Cancels a run of an in progress thread. */\n cancelRun: (\n threadId: string,\n runId: string,\n options?: CancelRunOptionalParams,\n ) => Promise<ThreadRunOutput>;\n /** Creates a new thread and immediately starts a run of that thread. */\n createThreadAndRun: (\n assistantId: string,\n options?: CreateAndRunThreadOptionalParams,\n ) => AgentRunResponse;\n\n /** Creates a new message on a specified thread. */\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n /** Gets a list of messages that exist on a thread. */\n listMessages: (\n threadId: string,\n options?: ListMessagesOptionalParams,\n ) => Promise<OpenAIPageableListOfThreadMessageOutput>;\n /** Modifies an existing message on an existing thread. */\n updateMessage: (\n threadId: string,\n messageId: string,\n options?: UpdateMessageOptionalParams,\n ) => Promise<ThreadMessageOutput>;\n\n /** Gets a list of previously uploaded files. */\n listFiles: (options?: ListFilesOptionalParams) => Promise<FileListResponseOutput>;\n /** Uploads a file for use by other operations. */\n uploadFile: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n\n /** Uploads a file for use by other operations. */\n uploadFileAndPoll: (\n data: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => PollerLike<OperationState<OpenAIFileOutput>, OpenAIFileOutput>;\n /** Delete a previously uploaded file. */\n deleteFile: (\n fileId: string,\n options?: DeleteFileOptionalParams,\n ) => Promise<FileDeletionStatusOutput>;\n /** Returns information about a specific file. Does not retrieve file content. */\n getFile: (fileId: string, options?: GetFileOptionalParams) => Promise<OpenAIFileOutput>;\n /** Returns the content of a specific file. */\n getFileContent: (\n fileId: string,\n options?: GetFileContentOptionalParams,\n ) => StreamableMethod<string | Uint8Array>;\n\n /** Returns a list of vector stores. */\n listVectorStores: (\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreOutput>;\n /** Creates a vector store. */\n createVectorStore: (\n options?: CreateVectorStoreOptionalParams,\n ) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;\n /** Returns the vector store object object matching the specific ID. */\n getVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** The ID of the vector store to modify. */\n modifyVectorStore: (\n vectorStoreId: string,\n options?: UpdateVectorStoreOptionalParams,\n ) => Promise<VectorStoreOutput>;\n /** Deletes the vector store object matching the specified ID. */\n deleteVectorStore: (\n vectorStoreId: string,\n options?: DeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreDeletionStatusOutput>;\n\n /** Create vector store and poll. */\n createVectorStoreAndPoll: (\n options?: CreateVectorStoreOptionalParams,\n ) => PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;\n\n /** Create a vector store file by attching a file to a vector store. */\n createVectorStoreFile: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n /** Retrieves a vector store file. */\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileOutput>;\n /** Returns a list of vector store files. */\n listVectorStoreFiles: (\n vectorStoreId: string,\n options?: ListVectorStoreFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /**\n * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\n * To delete the file, use the delete file endpoint.\n */\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileDeletionStatusOutput>;\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;\n\n /** Create a vector store file batch. */\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n /** Retrieve a vector store file batch. */\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatchOutput>;\n /** Returns a list of vector store files in a batch. */\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => Promise<OpenAIPageableListOfVectorStoreFileOutput>;\n /** Create a vector store file batch and poll. */\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;\n\n /** Gets a single run step from a thread run. */\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => Promise<RunStepOutput>;\n /** Gets a list of run steps from a thread run. */\n listRunSteps: (\n threadId: string,\n runId: string,\n options?: ListRunQueryOptionalParams,\n ) => Promise<OpenAIPageableListOfRunStepOutput>;\n}\n\nfunction getAgents(context: Client): AgentsOperations {\n return {\n createAgent: (model: string, options?: CreateAgentOptionalParams) =>\n createAgent(context, model, options),\n listAgents: (options?: ListAgentsOptionalParams) => listAgents(context, options),\n getAgent: (assistantId: string, options?: GetAgentOptionalParams) =>\n getAgent(context, assistantId, options),\n updateAgent: (assistantId: string, options: UpdateAgentOptionalParams) =>\n updateAgent(context, assistantId, options),\n deleteAgent: (assistantId: string, options?: DeleteAgentOptionalParams) =>\n deleteAgent(context, assistantId, options),\n\n createThread: (options?: CreateAgentThreadOptionalParams) => createThread(context, options),\n getThread: (threadId: string, options?: GetAgentThreadOptionalParams) =>\n getThread(context, threadId, options),\n updateThread: (threadId: string, options?: UpdateAgentThreadOptionalParams) =>\n updateThread(context, threadId, options),\n deleteThread: (threadId: string, options?: DeleteAgentThreadOptionalParams) =>\n deleteThread(context, threadId, options),\n listThreads: (options?: ListAgentThreadOptionalParams) => listThreads(context, options),\n\n createRun: (threadId: string, assistantId: string, options?: CreateRunOptionalParams) =>\n createRun(context, threadId, assistantId, options ?? {}),\n listRuns: (threadId: string, options?: ListRunQueryOptionalParams) =>\n listRuns(context, threadId, options ?? {}),\n getRun: (threadId: string, runId: string, options?: GetRunOptionalParams) =>\n getRun(context, threadId, runId, options),\n updateRun: (threadId: string, runId: string, options?: UpdateRunOptionalParams) =>\n updateRun(context, threadId, runId, options),\n submitToolOutputsToRun: (\n threadId: string,\n runId: string,\n toolOutputs: Array<ToolOutput>,\n options?: SubmitToolOutputsToRunOptionalParams,\n ) => submitToolOutputsToRun(context, threadId, runId, toolOutputs, options),\n cancelRun: (threadId: string, runId: string, options?: CancelRunOptionalParams) =>\n cancelRun(context, threadId, runId, options),\n createThreadAndRun: (assistantId: string, options?: CreateAndRunThreadOptionalParams) =>\n createThreadAndRun(context, assistantId, options ?? {}),\n\n createMessage: (\n threadId: string,\n messageOptions: ThreadMessageOptions,\n options?: CreateMessageOptionalParams,\n ) => createMessage(context, threadId, messageOptions, options),\n listMessages: (threadId: string, options?: ListMessagesOptionalParams) =>\n listMessages(context, threadId, options),\n updateMessage: (threadId: string, messageId: string, options?: UpdateMessageOptionalParams) =>\n updateMessage(context, threadId, messageId, options),\n\n listFiles: (options?: ListFilesOptionalParams) => listFiles(context, options),\n uploadFile: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFile(context, content, purpose, options),\n uploadFileAndPoll: (\n content: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options?: UploadFileOptionalParams,\n ) => uploadFileAndPoll(context, content, purpose, options),\n deleteFile: (fileId: string, options?: DeleteFileOptionalParams) =>\n deleteFile(context, fileId, options),\n getFile: (fileId: string, options?: GetFileOptionalParams) => getFile(context, fileId, options),\n getFileContent: (fileId: string, options?: GetFileContentOptionalParams) =>\n getFileContent(context, fileId, options),\n\n listVectorStores: (options?: ListVectorStoresOptionalParams) =>\n listVectorStores(context, options),\n createVectorStore: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStore(context, options),\n getVectorStore: (vectorStoreId: string, options?: GetVectorStoreOptionalParams) =>\n getVectorStore(context, vectorStoreId, options),\n modifyVectorStore: (vectorStoreId: string, options?: UpdateVectorStoreOptionalParams) =>\n modifyVectorStore(context, vectorStoreId, options),\n deleteVectorStore: (vectorStoreId: string, options?: DeleteVectorStoreOptionalParams) =>\n deleteVectorStore(context, vectorStoreId, options),\n createVectorStoreAndPoll: (options?: CreateVectorStoreOptionalParams) =>\n createVectorStoreAndPoll(context, options),\n\n createVectorStoreFile: (vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams) =>\n createVectorStoreFile(context, vectorStoreId, options),\n getVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: GetVectorStoreFileOptionalParams,\n ) => getVectorStoreFile(context, vectorStoreId, fileId, options),\n listVectorStoreFiles: (vectorStoreId: string, options?: ListVectorStoreFilesOptionalParams) =>\n listVectorStoreFiles(context, vectorStoreId, options),\n deleteVectorStoreFile: (\n vectorStoreId: string,\n fileId: string,\n options?: DeleteVectorStoreFileOptionalParams,\n ) => deleteVectorStoreFile(context, vectorStoreId, fileId, options),\n createVectorStoreFileAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFileAndPoll(context, vectorStoreId, options),\n\n createVectorStoreFileBatch: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatch(context, vectorStoreId, options),\n getVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: GetVectorStoreFileBatchOptionalParams,\n ) => getVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n cancelVectorStoreFileBatch: (\n vectorStoreId: string,\n batchId: string,\n options?: CancelVectorStoreFileBatchOptionalParams,\n ) => cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n listVectorStoreFileBatchFiles: (\n vectorStoreId: string,\n batchId: string,\n options?: ListVectorStoreFileBatchFilesOptionalParams,\n ) => listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options),\n createVectorStoreFileBatchAndPoll: (\n vectorStoreId: string,\n options?: CreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatchAndPoll(context, vectorStoreId, options),\n\n getRunStep: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: GetRunStepOptionalParams,\n ) => getRunStep(context, threadId, runId, stepId, options),\n listRunSteps: (threadId: string, runId: string, options?: ListRunStepsOptionalParams) =>\n listRunSteps(context, threadId, runId, options),\n };\n}\n\nexport function getAgentsOperations(context: Client): AgentsOperations {\n return {\n ...getAgents(context),\n };\n}\n"]}
|
|
@@ -3,8 +3,8 @@ export * from "./streamingModels.js";
|
|
|
3
3
|
export * from "./vectorStoresModels.js";
|
|
4
4
|
export * from "./utils.js";
|
|
5
5
|
export * from "../customization/streamingModels.js";
|
|
6
|
-
export type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput, RequiredActionOutput, RequiredToolCallOutput, ToolDefinitionOutputParent, AgentsApiResponseFormatOptionOutput, ToolDefinitionOutput, ToolResourcesOutput, AgentsApiResponseFormatModeOutput, AgentsApiResponseFormatOutput, FilePurposeOutput, FileStateOutput, RequiredActionOutputParent, SubmitToolOutputsActionOutput, RequiredToolCallOutputParent, RequiredFunctionToolCallOutput, RunStepErrorOutput, RunStepStatusOutput, RunStepDetailsOutput, RunStepTypeOutput, RunStepCompletionUsageOutput, MessageAttachmentOutput, MessageContentOutput, MessageIncompleteDetailsOutput, MessageRoleOutput, MessageStatusOutput, IncompleteRunDetailsOutput, RunErrorOutput, RunStatusOutput, AgentsApiToolChoiceOptionOutput, UpdateToolResourcesOptionsOutput, TruncationObjectOutput, RunCompletionUsageOutput, CodeInterpreterToolDefinitionOutput, FileSearchToolDefinitionOutput, FunctionToolDefinitionOutput, BingGroundingToolDefinitionOutput, BingCustomSearchToolDefinitionOutput, SearchConfigurationListOutput, SearchConfigurationOutput, AzureAISearchToolDefinitionOutput, AzureAISearchResourceOutput, CodeInterpreterToolResourceOutput, FileSearchToolResourceOutput, VectorStoreFileCountOutput, VectorStoreFileBatchStatusOutput, VectorStoreChunkingStrategyResponseOutput, VectorStoreConfigurationOutput, AgentsNamedToolChoiceOutput, IndexResourceOutput, ToolConnectionListOutput, VectorStoreDataSourceOutput, FileSearchToolDefinitionDetailsOutput, VectorStoreConfigurationsOutput, FunctionDefinitionOutput, MessageAttachmentToolDefinitionOutput, MessageContentOutputParent, MessageTextContentOutput, MessageImageFileContentOutput, RequiredFunctionToolCallDetailsOutput, RunStepDetailsOutputParent, RunStepMessageCreationDetailsOutput, RunStepToolCallDetailsOutput, RunStepErrorCodeOutput, SubmitToolOutputsDetailsOutput, MicrosoftFabricToolDefinitionOutput, SharepointToolDefinitionOutput, UpdateCodeInterpreterToolResourceOptionsOutput, UpdateFileSearchToolResourceOptionsOutput, VectorStoreChunkingStrategyResponseOutputParent, VectorStoreAutoChunkingStrategyResponseOutput, VectorStoreStaticChunkingStrategyResponseOutput, VectorStoreFileErrorOutput, VectorStoreFileStatusOutput, VectorStoreExpirationPolicyOutput, VectorStoreStatusOutput, AgentsApiToolChoiceOptionModeOutput, FunctionNameOutput, AgentsNamedToolChoiceTypeOutput, MessageImageFileDetailsOutput, MessageIncompleteDetailsReasonOutput, MessageTextDetailsOutput, RunStepMessageCreationReferenceOutput, RunStepToolCallOutput, ToolConnectionOutput, TruncationStrategyOutput, VectorStoreChunkingStrategyResponseTypeOutput, VectorStoreDataSourceAssetTypeOutput, VectorStoreExpirationPolicyAnchorOutput, VectorStoreFileErrorCodeOutput, VectorStoreStaticChunkingStrategyOptionsOutput, FileSearchRankingOptionsOutput, MessageTextAnnotationOutput, RunStepToolCallOutputParent, RunStepCodeInterpreterToolCallOutput, RunStepFileSearchToolCallOutput, RunStepBingGroundingToolCallOutput, RunStepAzureAISearchToolCallOutput, RunStepSharepointToolCallOutput, RunStepMicrosoftFabricToolCallOutput, RunStepFunctionToolCallOutput, MessageTextAnnotationOutputParent, MessageTextFileCitationAnnotationOutput, MessageTextFilePathAnnotationOutput, RunStepCodeInterpreterToolCallOutputOutputParent, RunStepCodeInterpreterToolCallDetailsOutput, RunStepFunctionToolCallDetailsOutput, MessageTextFileCitationDetailsOutput, MessageTextFilePathDetailsOutput, RunStepCodeInterpreterToolCallOutputOutput, RunStepCodeInterpreterLogOutputOutput, RunStepCodeInterpreterImageOutputOutput, RunStepCodeInterpreterImageReferenceOutput, ResponseFormatOutput, ResponseFormatJsonSchemaTypeOutput, IncompleteDetailsReasonOutput, RunStepFileSearchToolCallResultsOutput, ResponseFormatJsonSchemaOutput, RunStepFileSearchToolCallResultOutput, FileSearchToolCallContentOutput, AzureFunctionToolDefinitionOutput, AzureFunctionDefinitionOutput, AzureFunctionBindingOutput, OpenApiToolDefinitionOutput, OpenApiFunctionDefinitionOutput, OpenApiAuthDetailsOutput, OpenApiAuthTypeOutput, OpenApiAuthDetailsOutputParent, OpenApiAnonymousAuthDetailsOutput, OpenApiConnectionAuthDetailsOutput, OpenApiManagedAuthDetailsOutput, AzureFunctionStorageQueueOutput, OpenApiConnectionSecuritySchemeOutput, OpenApiManagedSecuritySchemeOutput, } from "../customization/outputModels.js";
|
|
7
|
-
export { ListMessagesQueryParamProperties, ListFilesQueryParamProperties, } from "../customization/parameters.js";
|
|
8
|
-
export type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, ListRunStepsOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, GetVectorStoreOptionalParams, ListVectorStoresOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, ListQueryParameters, PollingOptions, PollingOptionsParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams, } from "./customModels.js";
|
|
9
|
-
export { AzureAISearchToolDefinition, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FunctionDefinition, FunctionToolDefinition, ToolResources, VectorStoreConfigurations, VectorStoreDataSource, ToolDefinition, ThreadMessageOptions, ToolOutput, FilePurpose, ToolDefinitionParent, AgentThreadCreationOptions, CreateAgentOptions, CreateAndRunThreadOptions, CreateRunOptions, UpdateAgentOptions, UpdateAgentThreadOptions, VectorStoreFileStatusFilter, VectorStoreOptions, VectorStoreUpdateOptions, AgentsApiResponseFormatMode, AgentsApiToolChoiceOption, TruncationObject, UpdateToolResourcesOptions, VectorStoreChunkingStrategyRequest, FileSearchRankingOptions, AgentsApiToolChoiceOptionMode, AgentsNamedToolChoice, AgentsApiResponseFormatOption, ConnectionType, ListSortOrder, MessageAttachment, BingGroundingToolDefinition, MicrosoftFabricToolDefinition, SharepointToolDefinition, AzureAISearchResource, CodeInterpreterToolResource, FileSearchToolResource, TruncationStrategy, UpdateCodeInterpreterToolResourceOptions, UpdateFileSearchToolResourceOptions, VectorStoreChunkingStrategyRequestParent, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreConfiguration, VectorStoreDataSourceAssetType, AgentsApiResponseFormat, FunctionName, AgentsNamedToolChoiceType, IndexResource, ToolConnectionList, MessageAttachmentToolDefinition, MessageRole, VectorStoreChunkingStrategyRequestType, VectorStoreExpirationPolicy, VectorStoreStaticChunkingStrategyOptions, ToolConnection, VectorStoreExpirationPolicyAnchor, ResponseFormat, ResponseFormatJsonSchemaType, OpenApiToolDefinition, AzureFunctionToolDefinition, OpenApiFunctionDefinition, ResponseFormatJsonSchema, AzureFunctionDefinition, AzureFunctionBinding, OpenApiAuthDetails, AzureFunctionStorageQueue, OpenApiAuthType, OpenApiAuthDetailsParent, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiManagedAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedSecurityScheme, } from "../customization/models.js";
|
|
6
|
+
export type { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput, AgentThreadOutput, RunStepOutput, OpenAIPageableListOfRunStepOutput, ThreadMessageOutput, ThreadDeletionStatusOutput, OpenAIPageableListOfThreadMessageOutput, OpenAIPageableListOfVectorStoreOutput, VectorStoreOutput, VectorStoreFileOutput, VectorStoreDeletionStatusOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, OpenAIPageableListOfVectorStoreFileOutput, AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput, RequiredActionOutput, RequiredToolCallOutput, ToolDefinitionOutputParent, AgentsApiResponseFormatOptionOutput, ToolDefinitionOutput, ToolResourcesOutput, AgentsApiResponseFormatModeOutput, AgentsApiResponseFormatOutput, FilePurposeOutput, FileStateOutput, RequiredActionOutputParent, SubmitToolOutputsActionOutput, RequiredToolCallOutputParent, RequiredFunctionToolCallOutput, RunStepErrorOutput, RunStepStatusOutput, RunStepDetailsOutput, RunStepTypeOutput, RunStepCompletionUsageOutput, MessageAttachmentOutput, MessageContentOutput, MessageIncompleteDetailsOutput, MessageRoleOutput, MessageStatusOutput, IncompleteRunDetailsOutput, RunErrorOutput, RunStatusOutput, AgentsApiToolChoiceOptionOutput, UpdateToolResourcesOptionsOutput, TruncationObjectOutput, RunCompletionUsageOutput, CodeInterpreterToolDefinitionOutput, FileSearchToolDefinitionOutput, FunctionToolDefinitionOutput, BingGroundingToolDefinitionOutput, BingCustomSearchToolDefinitionOutput, SearchConfigurationListOutput, SearchConfigurationOutput, AzureAISearchToolDefinitionOutput, AzureAISearchResourceOutput, CodeInterpreterToolResourceOutput, FileSearchToolResourceOutput, VectorStoreFileCountOutput, VectorStoreFileBatchStatusOutput, VectorStoreChunkingStrategyResponseOutput, VectorStoreConfigurationOutput, AgentsNamedToolChoiceOutput, IndexResourceOutput, ToolConnectionListOutput, VectorStoreDataSourceOutput, FileSearchToolDefinitionDetailsOutput, VectorStoreConfigurationsOutput, FunctionDefinitionOutput, MessageAttachmentToolDefinitionOutput, MessageContentOutputParent, MessageTextContentOutput, MessageImageFileContentOutput, RequiredFunctionToolCallDetailsOutput, RunStepDetailsOutputParent, RunStepMessageCreationDetailsOutput, RunStepToolCallDetailsOutput, RunStepErrorCodeOutput, SubmitToolOutputsDetailsOutput, MicrosoftFabricToolDefinitionOutput, SharepointToolDefinitionOutput, UpdateCodeInterpreterToolResourceOptionsOutput, UpdateFileSearchToolResourceOptionsOutput, VectorStoreChunkingStrategyResponseOutputParent, VectorStoreAutoChunkingStrategyResponseOutput, VectorStoreStaticChunkingStrategyResponseOutput, VectorStoreFileErrorOutput, VectorStoreFileStatusOutput, VectorStoreExpirationPolicyOutput, VectorStoreStatusOutput, AgentsApiToolChoiceOptionModeOutput, FunctionNameOutput, AgentsNamedToolChoiceTypeOutput, MessageImageFileDetailsOutput, MessageIncompleteDetailsReasonOutput, MessageTextDetailsOutput, RunStepMessageCreationReferenceOutput, RunStepToolCallOutput, ToolConnectionOutput, TruncationStrategyOutput, VectorStoreChunkingStrategyResponseTypeOutput, VectorStoreDataSourceAssetTypeOutput, VectorStoreExpirationPolicyAnchorOutput, VectorStoreFileErrorCodeOutput, VectorStoreStaticChunkingStrategyOptionsOutput, FileSearchRankingOptionsOutput, MessageTextAnnotationOutput, RunStepToolCallOutputParent, RunStepCodeInterpreterToolCallOutput, RunStepFileSearchToolCallOutput, RunStepBingGroundingToolCallOutput, RunStepAzureAISearchToolCallOutput, RunStepSharepointToolCallOutput, RunStepMicrosoftFabricToolCallOutput, RunStepFunctionToolCallOutput, MessageTextAnnotationOutputParent, MessageTextFileCitationAnnotationOutput, MessageTextFilePathAnnotationOutput, RunStepCodeInterpreterToolCallOutputOutputParent, RunStepCodeInterpreterToolCallDetailsOutput, RunStepFunctionToolCallDetailsOutput, MessageTextFileCitationDetailsOutput, MessageTextFilePathDetailsOutput, RunStepCodeInterpreterToolCallOutputOutput, RunStepCodeInterpreterLogOutputOutput, RunStepCodeInterpreterImageOutputOutput, RunStepCodeInterpreterImageReferenceOutput, ResponseFormatOutput, ResponseFormatJsonSchemaTypeOutput, IncompleteDetailsReasonOutput, RunStepFileSearchToolCallResultsOutput, ResponseFormatJsonSchemaOutput, RunStepFileSearchToolCallResultOutput, FileSearchToolCallContentOutput, AzureFunctionToolDefinitionOutput, AzureFunctionDefinitionOutput, AzureFunctionBindingOutput, OpenApiToolDefinitionOutput, OpenApiFunctionDefinitionOutput, OpenApiAuthDetailsOutput, OpenApiAuthTypeOutput, OpenApiAuthDetailsOutputParent, OpenApiAnonymousAuthDetailsOutput, OpenApiConnectionAuthDetailsOutput, OpenApiManagedAuthDetailsOutput, AzureFunctionStorageQueueOutput, OpenApiConnectionSecuritySchemeOutput, OpenApiManagedSecuritySchemeOutput, OpenAIPageableListOfAgentThreadOutput, } from "../customization/outputModels.js";
|
|
7
|
+
export { ListMessagesQueryParamProperties, ListFilesQueryParamProperties, ListThreadsQueryParamProperties, } from "../customization/parameters.js";
|
|
8
|
+
export type { AgentRunResponse, CreateRunOptionalParams, GetRunOptionalParams, CancelRunOptionalParams, SubmitToolOutputsToRunOptionalParams, UpdateRunOptionalParams, ListRunQueryOptionalParams, CreateAndRunThreadOptionalParams, CreateAgentThreadOptionalParams, GetAgentThreadOptionalParams, UpdateAgentThreadOptionalParams, DeleteAgentThreadOptionalParams, GetRunStepOptionalParams, ListRunStepsOptionalParams, CreateMessageOptionalParams, ListMessagesOptionalParams, UpdateMessageOptionalParams, GetVectorStoreOptionalParams, ListVectorStoresOptionalParams, UpdateVectorStoreOptionalParams, DeleteVectorStoreOptionalParams, CreateVectorStoreOptionalParams, CreateVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams, GetVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams, CreateAgentOptionalParams, ListAgentsOptionalParams, GetAgentOptionalParams, UpdateAgentOptionalParams, DeleteFileOptionalParams, GetFileOptionalParams, GetFileContentOptionalParams, ListFilesOptionalParams, UploadFileOptionalParams, ListQueryParameters, PollingOptions, PollingOptionsParams, CancelVectorStoreFileBatchOptionalParams, DeleteAgentOptionalParams, ListAgentThreadOptionalParams, } from "./customModels.js";
|
|
9
|
+
export { AzureAISearchToolDefinition, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FunctionDefinition, FunctionToolDefinition, ToolResources, VectorStoreConfigurations, VectorStoreDataSource, ToolDefinition, ThreadMessageOptions, ToolOutput, FilePurpose, ToolDefinitionParent, AgentThreadCreationOptions, CreateAgentOptions, CreateAndRunThreadOptions, CreateRunOptions, UpdateAgentOptions, UpdateAgentThreadOptions, VectorStoreFileStatusFilter, VectorStoreOptions, VectorStoreUpdateOptions, AgentsApiResponseFormatMode, AgentsApiToolChoiceOption, TruncationObject, UpdateToolResourcesOptions, VectorStoreChunkingStrategyRequest, FileSearchRankingOptions, AgentsApiToolChoiceOptionMode, AgentsNamedToolChoice, AgentsApiResponseFormatOption, ConnectionType, ListSortOrder, MessageAttachment, BingGroundingToolDefinition, MicrosoftFabricToolDefinition, SharepointToolDefinition, AzureAISearchResource, CodeInterpreterToolResource, FileSearchToolResource, TruncationStrategy, UpdateCodeInterpreterToolResourceOptions, UpdateFileSearchToolResourceOptions, VectorStoreChunkingStrategyRequestParent, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreConfiguration, VectorStoreDataSourceAssetType, AgentsApiResponseFormat, FunctionName, AgentsNamedToolChoiceType, IndexResource, ToolConnectionList, MessageAttachmentToolDefinition, MessageRole, VectorStoreChunkingStrategyRequestType, VectorStoreExpirationPolicy, VectorStoreStaticChunkingStrategyOptions, ToolConnection, VectorStoreExpirationPolicyAnchor, ResponseFormat, ResponseFormatJsonSchemaType, OpenApiToolDefinition, AzureFunctionToolDefinition, OpenApiFunctionDefinition, ResponseFormatJsonSchema, AzureFunctionDefinition, AzureFunctionBinding, OpenApiAuthDetails, AzureFunctionStorageQueue, OpenApiAuthType, OpenApiAuthDetailsParent, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiManagedAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedSecurityScheme, CreateMessageContent, MessageContentBlockInput, MessageContentBlockInputParent, MessageTextBlockInput, MessageImageFileBlockInput, MessageImageUrlBlockInput, MessageBlockType, MessageImageFileParam, MessageImageUrlParam, ImageDetailLevel, AzureFunctionToolResource, } from "../customization/models.js";
|
|
10
10
|
//# sourceMappingURL=inputOutputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputOutputs.d.ts","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":"AAGA,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC;AACpD,YAAY,EACV,mCAAmC,EACnC,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B,uCAAuC,EACvC,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EACzB,WAAW,EACX,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,E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,wBAAwB,EACxB,6CAA6C,EAC7C,oCAAoC,EACpC,uCAAuC,EACvC,8BAA8B,EAC9B,8CAA8C,EAC9C,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,oCAAoC,EACpC,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,+BAA+B,EAC/B,oCAAoC,EACpC,6BAA6B,EAC7B,iCAAiC,EACjC,uCAAuC,EACvC,mCAAmC,EACnC,gDAAgD,EAChD,2CAA2C,EAC3C,oCAAoC,EACpC,oCAAoC,EACpC,gCAAgC,EAChC,0CAA0C,EAC1C,qCAAqC,EACrC,uCAAuC,EACvC,0CAA0C,EAC1C,oBAAoB,EACpB,kCAAkC,EAClC,6BAA6B,EAC7B,sCAAsC,EACtC,8BAA8B,EAC9B,qCAAqC,EACrC,+BAA+B,EAC/B,iCAAiC,EACjC,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,EAC/B,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,iCAAiC,EACjC,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,qCAAqC,EACrC,kCAAkC,
|
|
1
|
+
{"version":3,"file":"inputOutputs.d.ts","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":"AAGA,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC;AACpD,YAAY,EACV,mCAAmC,EACnC,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B,uCAAuC,EACvC,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,+BAA+B,EAC/B,mCAAmC,EACnC,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EACzB,WAAW,EACX,+BAA+B,EAC/B,wBAAwB,E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4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,EAC/B,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputOutputs.js","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"../customization/streamingModels.js\";\nexport * from \"./streamingModels.js\";\nexport * from \"./vectorStoresModels.js\";\nexport * from \"./utils.js\";\nexport * from \"../customization/streamingModels.js\";\nexport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n RequiredActionOutput,\n RequiredToolCallOutput,\n ToolDefinitionOutputParent,\n AgentsApiResponseFormatOptionOutput,\n ToolDefinitionOutput,\n ToolResourcesOutput,\n AgentsApiResponseFormatModeOutput,\n AgentsApiResponseFormatOutput,\n FilePurposeOutput,\n FileStateOutput,\n RequiredActionOutputParent,\n SubmitToolOutputsActionOutput,\n RequiredToolCallOutputParent,\n RequiredFunctionToolCallOutput,\n RunStepErrorOutput,\n RunStepStatusOutput,\n RunStepDetailsOutput,\n RunStepTypeOutput,\n RunStepCompletionUsageOutput,\n MessageAttachmentOutput,\n MessageContentOutput,\n MessageIncompleteDetailsOutput,\n MessageRoleOutput,\n MessageStatusOutput,\n IncompleteRunDetailsOutput,\n RunErrorOutput,\n RunStatusOutput,\n AgentsApiToolChoiceOptionOutput,\n UpdateToolResourcesOptionsOutput,\n TruncationObjectOutput,\n RunCompletionUsageOutput,\n CodeInterpreterToolDefinitionOutput,\n FileSearchToolDefinitionOutput,\n FunctionToolDefinitionOutput,\n BingGroundingToolDefinitionOutput,\n BingCustomSearchToolDefinitionOutput,\n SearchConfigurationListOutput,\n SearchConfigurationOutput,\n AzureAISearchToolDefinitionOutput,\n AzureAISearchResourceOutput,\n CodeInterpreterToolResourceOutput,\n FileSearchToolResourceOutput,\n VectorStoreFileCountOutput,\n VectorStoreFileBatchStatusOutput,\n VectorStoreChunkingStrategyResponseOutput,\n VectorStoreConfigurationOutput,\n AgentsNamedToolChoiceOutput,\n IndexResourceOutput,\n ToolConnectionListOutput,\n VectorStoreDataSourceOutput,\n FileSearchToolDefinitionDetailsOutput,\n VectorStoreConfigurationsOutput,\n FunctionDefinitionOutput,\n MessageAttachmentToolDefinitionOutput,\n MessageContentOutputParent,\n MessageTextContentOutput,\n MessageImageFileContentOutput,\n RequiredFunctionToolCallDetailsOutput,\n RunStepDetailsOutputParent,\n RunStepMessageCreationDetailsOutput,\n RunStepToolCallDetailsOutput,\n RunStepErrorCodeOutput,\n SubmitToolOutputsDetailsOutput,\n MicrosoftFabricToolDefinitionOutput,\n SharepointToolDefinitionOutput,\n UpdateCodeInterpreterToolResourceOptionsOutput,\n UpdateFileSearchToolResourceOptionsOutput,\n VectorStoreChunkingStrategyResponseOutputParent,\n VectorStoreAutoChunkingStrategyResponseOutput,\n VectorStoreStaticChunkingStrategyResponseOutput,\n VectorStoreFileErrorOutput,\n VectorStoreFileStatusOutput,\n VectorStoreExpirationPolicyOutput,\n VectorStoreStatusOutput,\n AgentsApiToolChoiceOptionModeOutput,\n FunctionNameOutput,\n AgentsNamedToolChoiceTypeOutput,\n MessageImageFileDetailsOutput,\n MessageIncompleteDetailsReasonOutput,\n MessageTextDetailsOutput,\n RunStepMessageCreationReferenceOutput,\n RunStepToolCallOutput,\n ToolConnectionOutput,\n TruncationStrategyOutput,\n VectorStoreChunkingStrategyResponseTypeOutput,\n VectorStoreDataSourceAssetTypeOutput,\n VectorStoreExpirationPolicyAnchorOutput,\n VectorStoreFileErrorCodeOutput,\n VectorStoreStaticChunkingStrategyOptionsOutput,\n FileSearchRankingOptionsOutput,\n MessageTextAnnotationOutput,\n RunStepToolCallOutputParent,\n RunStepCodeInterpreterToolCallOutput,\n RunStepFileSearchToolCallOutput,\n RunStepBingGroundingToolCallOutput,\n RunStepAzureAISearchToolCallOutput,\n RunStepSharepointToolCallOutput,\n RunStepMicrosoftFabricToolCallOutput,\n RunStepFunctionToolCallOutput,\n MessageTextAnnotationOutputParent,\n MessageTextFileCitationAnnotationOutput,\n MessageTextFilePathAnnotationOutput,\n RunStepCodeInterpreterToolCallOutputOutputParent,\n RunStepCodeInterpreterToolCallDetailsOutput,\n RunStepFunctionToolCallDetailsOutput,\n MessageTextFileCitationDetailsOutput,\n MessageTextFilePathDetailsOutput,\n RunStepCodeInterpreterToolCallOutputOutput,\n RunStepCodeInterpreterLogOutputOutput,\n RunStepCodeInterpreterImageOutputOutput,\n RunStepCodeInterpreterImageReferenceOutput,\n ResponseFormatOutput,\n ResponseFormatJsonSchemaTypeOutput,\n IncompleteDetailsReasonOutput,\n RunStepFileSearchToolCallResultsOutput,\n ResponseFormatJsonSchemaOutput,\n RunStepFileSearchToolCallResultOutput,\n FileSearchToolCallContentOutput,\n AzureFunctionToolDefinitionOutput,\n AzureFunctionDefinitionOutput,\n AzureFunctionBindingOutput,\n OpenApiToolDefinitionOutput,\n OpenApiFunctionDefinitionOutput,\n OpenApiAuthDetailsOutput,\n OpenApiAuthTypeOutput,\n OpenApiAuthDetailsOutputParent,\n OpenApiAnonymousAuthDetailsOutput,\n OpenApiConnectionAuthDetailsOutput,\n OpenApiManagedAuthDetailsOutput,\n AzureFunctionStorageQueueOutput,\n OpenApiConnectionSecuritySchemeOutput,\n OpenApiManagedSecuritySchemeOutput,\n} from \"../customization/outputModels.js\";\nexport {\n ListMessagesQueryParamProperties,\n ListFilesQueryParamProperties,\n} from \"../customization/parameters.js\";\nexport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n ListQueryParameters,\n PollingOptions,\n PollingOptionsParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n} from \"./customModels.js\";\n\nexport {\n AzureAISearchToolDefinition,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FunctionDefinition,\n FunctionToolDefinition,\n ToolResources,\n VectorStoreConfigurations,\n VectorStoreDataSource,\n ToolDefinition,\n ThreadMessageOptions,\n ToolOutput,\n FilePurpose,\n ToolDefinitionParent,\n AgentThreadCreationOptions,\n CreateAgentOptions,\n CreateAndRunThreadOptions,\n CreateRunOptions,\n UpdateAgentOptions,\n UpdateAgentThreadOptions,\n VectorStoreFileStatusFilter,\n VectorStoreOptions,\n VectorStoreUpdateOptions,\n AgentsApiResponseFormatMode,\n AgentsApiToolChoiceOption,\n TruncationObject,\n UpdateToolResourcesOptions,\n VectorStoreChunkingStrategyRequest,\n FileSearchRankingOptions,\n AgentsApiToolChoiceOptionMode,\n AgentsNamedToolChoice,\n AgentsApiResponseFormatOption,\n ConnectionType,\n ListSortOrder,\n MessageAttachment,\n BingGroundingToolDefinition,\n MicrosoftFabricToolDefinition,\n SharepointToolDefinition,\n AzureAISearchResource,\n CodeInterpreterToolResource,\n FileSearchToolResource,\n TruncationStrategy,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n VectorStoreChunkingStrategyRequestParent,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreConfiguration,\n VectorStoreDataSourceAssetType,\n AgentsApiResponseFormat,\n FunctionName,\n AgentsNamedToolChoiceType,\n IndexResource,\n ToolConnectionList,\n MessageAttachmentToolDefinition,\n MessageRole,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreExpirationPolicy,\n VectorStoreStaticChunkingStrategyOptions,\n ToolConnection,\n VectorStoreExpirationPolicyAnchor,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n OpenApiToolDefinition,\n AzureFunctionToolDefinition,\n OpenApiFunctionDefinition,\n ResponseFormatJsonSchema,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n OpenApiAuthDetails,\n AzureFunctionStorageQueue,\n OpenApiAuthType,\n OpenApiAuthDetailsParent,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiManagedAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedSecurityScheme,\n} from \"../customization/models.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"inputOutputs.js","sourceRoot":"","sources":["../../../src/agents/inputOutputs.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"../customization/streamingModels.js\";\nexport * from \"./streamingModels.js\";\nexport * from \"./vectorStoresModels.js\";\nexport * from \"./utils.js\";\nexport * from \"../customization/streamingModels.js\";\nexport type {\n OpenAIPageableListOfThreadRunOutput,\n ThreadRunOutput,\n AgentThreadOutput,\n RunStepOutput,\n OpenAIPageableListOfRunStepOutput,\n ThreadMessageOutput,\n ThreadDeletionStatusOutput,\n OpenAIPageableListOfThreadMessageOutput,\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreOutput,\n VectorStoreFileOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileBatchOutput,\n OpenAIPageableListOfVectorStoreFileOutput,\n AgentDeletionStatusOutput,\n AgentOutput,\n OpenAIPageableListOfAgentOutput,\n FileDeletionStatusOutput,\n FileListResponseOutput,\n OpenAIFileOutput,\n RequiredActionOutput,\n RequiredToolCallOutput,\n ToolDefinitionOutputParent,\n AgentsApiResponseFormatOptionOutput,\n ToolDefinitionOutput,\n ToolResourcesOutput,\n AgentsApiResponseFormatModeOutput,\n AgentsApiResponseFormatOutput,\n FilePurposeOutput,\n FileStateOutput,\n RequiredActionOutputParent,\n SubmitToolOutputsActionOutput,\n RequiredToolCallOutputParent,\n RequiredFunctionToolCallOutput,\n RunStepErrorOutput,\n RunStepStatusOutput,\n RunStepDetailsOutput,\n RunStepTypeOutput,\n RunStepCompletionUsageOutput,\n MessageAttachmentOutput,\n MessageContentOutput,\n MessageIncompleteDetailsOutput,\n MessageRoleOutput,\n MessageStatusOutput,\n IncompleteRunDetailsOutput,\n RunErrorOutput,\n RunStatusOutput,\n AgentsApiToolChoiceOptionOutput,\n UpdateToolResourcesOptionsOutput,\n TruncationObjectOutput,\n RunCompletionUsageOutput,\n CodeInterpreterToolDefinitionOutput,\n FileSearchToolDefinitionOutput,\n FunctionToolDefinitionOutput,\n BingGroundingToolDefinitionOutput,\n BingCustomSearchToolDefinitionOutput,\n SearchConfigurationListOutput,\n SearchConfigurationOutput,\n AzureAISearchToolDefinitionOutput,\n AzureAISearchResourceOutput,\n CodeInterpreterToolResourceOutput,\n FileSearchToolResourceOutput,\n VectorStoreFileCountOutput,\n VectorStoreFileBatchStatusOutput,\n VectorStoreChunkingStrategyResponseOutput,\n VectorStoreConfigurationOutput,\n AgentsNamedToolChoiceOutput,\n IndexResourceOutput,\n ToolConnectionListOutput,\n VectorStoreDataSourceOutput,\n FileSearchToolDefinitionDetailsOutput,\n VectorStoreConfigurationsOutput,\n FunctionDefinitionOutput,\n MessageAttachmentToolDefinitionOutput,\n MessageContentOutputParent,\n MessageTextContentOutput,\n MessageImageFileContentOutput,\n RequiredFunctionToolCallDetailsOutput,\n RunStepDetailsOutputParent,\n RunStepMessageCreationDetailsOutput,\n RunStepToolCallDetailsOutput,\n RunStepErrorCodeOutput,\n SubmitToolOutputsDetailsOutput,\n MicrosoftFabricToolDefinitionOutput,\n SharepointToolDefinitionOutput,\n UpdateCodeInterpreterToolResourceOptionsOutput,\n UpdateFileSearchToolResourceOptionsOutput,\n VectorStoreChunkingStrategyResponseOutputParent,\n VectorStoreAutoChunkingStrategyResponseOutput,\n VectorStoreStaticChunkingStrategyResponseOutput,\n VectorStoreFileErrorOutput,\n VectorStoreFileStatusOutput,\n VectorStoreExpirationPolicyOutput,\n VectorStoreStatusOutput,\n AgentsApiToolChoiceOptionModeOutput,\n FunctionNameOutput,\n AgentsNamedToolChoiceTypeOutput,\n MessageImageFileDetailsOutput,\n MessageIncompleteDetailsReasonOutput,\n MessageTextDetailsOutput,\n RunStepMessageCreationReferenceOutput,\n RunStepToolCallOutput,\n ToolConnectionOutput,\n TruncationStrategyOutput,\n VectorStoreChunkingStrategyResponseTypeOutput,\n VectorStoreDataSourceAssetTypeOutput,\n VectorStoreExpirationPolicyAnchorOutput,\n VectorStoreFileErrorCodeOutput,\n VectorStoreStaticChunkingStrategyOptionsOutput,\n FileSearchRankingOptionsOutput,\n MessageTextAnnotationOutput,\n RunStepToolCallOutputParent,\n RunStepCodeInterpreterToolCallOutput,\n RunStepFileSearchToolCallOutput,\n RunStepBingGroundingToolCallOutput,\n RunStepAzureAISearchToolCallOutput,\n RunStepSharepointToolCallOutput,\n RunStepMicrosoftFabricToolCallOutput,\n RunStepFunctionToolCallOutput,\n MessageTextAnnotationOutputParent,\n MessageTextFileCitationAnnotationOutput,\n MessageTextFilePathAnnotationOutput,\n RunStepCodeInterpreterToolCallOutputOutputParent,\n RunStepCodeInterpreterToolCallDetailsOutput,\n RunStepFunctionToolCallDetailsOutput,\n MessageTextFileCitationDetailsOutput,\n MessageTextFilePathDetailsOutput,\n RunStepCodeInterpreterToolCallOutputOutput,\n RunStepCodeInterpreterLogOutputOutput,\n RunStepCodeInterpreterImageOutputOutput,\n RunStepCodeInterpreterImageReferenceOutput,\n ResponseFormatOutput,\n ResponseFormatJsonSchemaTypeOutput,\n IncompleteDetailsReasonOutput,\n RunStepFileSearchToolCallResultsOutput,\n ResponseFormatJsonSchemaOutput,\n RunStepFileSearchToolCallResultOutput,\n FileSearchToolCallContentOutput,\n AzureFunctionToolDefinitionOutput,\n AzureFunctionDefinitionOutput,\n AzureFunctionBindingOutput,\n OpenApiToolDefinitionOutput,\n OpenApiFunctionDefinitionOutput,\n OpenApiAuthDetailsOutput,\n OpenApiAuthTypeOutput,\n OpenApiAuthDetailsOutputParent,\n OpenApiAnonymousAuthDetailsOutput,\n OpenApiConnectionAuthDetailsOutput,\n OpenApiManagedAuthDetailsOutput,\n AzureFunctionStorageQueueOutput,\n OpenApiConnectionSecuritySchemeOutput,\n OpenApiManagedSecuritySchemeOutput,\n OpenAIPageableListOfAgentThreadOutput,\n} from \"../customization/outputModels.js\";\nexport {\n ListMessagesQueryParamProperties,\n ListFilesQueryParamProperties,\n ListThreadsQueryParamProperties,\n} from \"../customization/parameters.js\";\nexport type {\n AgentRunResponse,\n CreateRunOptionalParams,\n GetRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n ListRunQueryOptionalParams,\n CreateAndRunThreadOptionalParams,\n CreateAgentThreadOptionalParams,\n GetAgentThreadOptionalParams,\n UpdateAgentThreadOptionalParams,\n DeleteAgentThreadOptionalParams,\n GetRunStepOptionalParams,\n ListRunStepsOptionalParams,\n CreateMessageOptionalParams,\n ListMessagesOptionalParams,\n UpdateMessageOptionalParams,\n GetVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n UpdateVectorStoreOptionalParams,\n DeleteVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n GetVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n CreateAgentOptionalParams,\n ListAgentsOptionalParams,\n GetAgentOptionalParams,\n UpdateAgentOptionalParams,\n DeleteFileOptionalParams,\n GetFileOptionalParams,\n GetFileContentOptionalParams,\n ListFilesOptionalParams,\n UploadFileOptionalParams,\n ListQueryParameters,\n PollingOptions,\n PollingOptionsParams,\n CancelVectorStoreFileBatchOptionalParams,\n DeleteAgentOptionalParams,\n ListAgentThreadOptionalParams,\n} from \"./customModels.js\";\n\nexport {\n AzureAISearchToolDefinition,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FunctionDefinition,\n FunctionToolDefinition,\n ToolResources,\n VectorStoreConfigurations,\n VectorStoreDataSource,\n ToolDefinition,\n ThreadMessageOptions,\n ToolOutput,\n FilePurpose,\n ToolDefinitionParent,\n AgentThreadCreationOptions,\n CreateAgentOptions,\n CreateAndRunThreadOptions,\n CreateRunOptions,\n UpdateAgentOptions,\n UpdateAgentThreadOptions,\n VectorStoreFileStatusFilter,\n VectorStoreOptions,\n VectorStoreUpdateOptions,\n AgentsApiResponseFormatMode,\n AgentsApiToolChoiceOption,\n TruncationObject,\n UpdateToolResourcesOptions,\n VectorStoreChunkingStrategyRequest,\n FileSearchRankingOptions,\n AgentsApiToolChoiceOptionMode,\n AgentsNamedToolChoice,\n AgentsApiResponseFormatOption,\n ConnectionType,\n ListSortOrder,\n MessageAttachment,\n BingGroundingToolDefinition,\n MicrosoftFabricToolDefinition,\n SharepointToolDefinition,\n AzureAISearchResource,\n CodeInterpreterToolResource,\n FileSearchToolResource,\n TruncationStrategy,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n VectorStoreChunkingStrategyRequestParent,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreConfiguration,\n VectorStoreDataSourceAssetType,\n AgentsApiResponseFormat,\n FunctionName,\n AgentsNamedToolChoiceType,\n IndexResource,\n ToolConnectionList,\n MessageAttachmentToolDefinition,\n MessageRole,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreExpirationPolicy,\n VectorStoreStaticChunkingStrategyOptions,\n ToolConnection,\n VectorStoreExpirationPolicyAnchor,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n OpenApiToolDefinition,\n AzureFunctionToolDefinition,\n OpenApiFunctionDefinition,\n ResponseFormatJsonSchema,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n OpenApiAuthDetails,\n AzureFunctionStorageQueue,\n OpenApiAuthType,\n OpenApiAuthDetailsParent,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiManagedAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedSecurityScheme,\n CreateMessageContent,\n MessageContentBlockInput,\n MessageContentBlockInputParent,\n MessageTextBlockInput,\n MessageImageFileBlockInput,\n MessageImageUrlBlockInput,\n MessageBlockType,\n MessageImageFileParam,\n MessageImageUrlParam,\n ImageDetailLevel,\n AzureFunctionToolResource,\n} from \"../customization/models.js\";\n"]}
|
|
@@ -26,7 +26,7 @@ export async function createMessage(context, threadId, messageOptions, options =
|
|
|
26
26
|
}
|
|
27
27
|
/** Gets a list of messages that exist on a thread. */
|
|
28
28
|
export async function listMessages(context, threadId, options = {}) {
|
|
29
|
-
const listOptions = Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { queryParameters: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (options.runId && { run_id: options.runId })), (options.limit && {
|
|
29
|
+
const listOptions = Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { queryParameters: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (options.runId && { run_id: options.runId })), (options.limit && { limit: options.limit })), (options.order && { order: options.order })), (options.after && { after: options.after })), (options.before && { before: options.before })) });
|
|
30
30
|
validateThreadId(threadId);
|
|
31
31
|
validateListMessagesParameters(listOptions);
|
|
32
32
|
const output = await TracingUtility.withSpan("ListMessages", listOptions, async (updateOptions) => {
|