Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@
"/agents/{agent_name}/endpoint/sessions/{session_id}:stop": {
"post": {
"operationId": "Agents_stopSession",
"description": "Stops a session.\nReturns 204 No Content when the stop succeeds.\nReturns a failed session resource when the stop attempt fails.",
"description": "Stops a session.\nReturns 204 No Content when the stop succeeds.",
"parameters": [
{
"name": "Foundry-Features",
Expand Down Expand Up @@ -29871,8 +29871,7 @@
"OpenAI.FileSearchTool": {
"type": "object",
"required": [
"type",
"vector_store_ids"
"type"
],
"properties": {
"type": {
Expand All @@ -29884,13 +29883,6 @@
"x-stainless-const": true,
"default": "file_search"
},
"vector_store_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The IDs of the vector stores to search."
},
"max_num_results": {
"allOf": [
{
Expand Down Expand Up @@ -29929,6 +29921,13 @@
"$ref": "#/components/schemas/ToolConfig"
},
"description": "Per-tool configuration map. Keys are tool names or `*` (catch-all default).\nResolution order: exact tool name match takes priority over `*`.\nUnknown tool names are silently ignored at runtime."
},
"vector_store_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The IDs of the vector stores to search."
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,6 @@ paths:
description: |-
Stops a session.
Returns 204 No Content when the stop succeeds.
Returns a failed session resource when the stop attempt fails.
parameters:
- name: Foundry-Features
in: header
Expand Down Expand Up @@ -20413,7 +20412,6 @@ components:
type: object
required:
- type
- vector_store_ids
properties:
type:
type: string
Expand All @@ -20422,11 +20420,6 @@ components:
description: The type of the file search tool. Always `file_search`.
x-stainless-const: true
default: file_search
vector_store_ids:
type: array
items:
type: string
description: The IDs of the vector stores to search.
max_num_results:
allOf:
- $ref: '#/components/schemas/OpenAI.integer'
Expand All @@ -20453,6 +20446,11 @@ components:
Per-tool configuration map. Keys are tool names or `*` (catch-all default).
Resolution order: exact tool name match takes priority over `*`.
Unknown tool names are silently ignored at runtime.
vector_store_ids:
type: array
items:
type: string
description: The IDs of the vector stores to search.
allOf:
- $ref: '#/components/schemas/OpenAI.Tool'
description: A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,7 @@
"/agents/{agent_name}/endpoint/sessions/{session_id}:stop": {
"post": {
"operationId": "Agents_stopSession",
"description": "Stops a session.\nReturns 204 No Content when the stop succeeds.\nReturns a failed session resource when the stop attempt fails.",
"description": "Stops a session.\nReturns 204 No Content when the stop succeeds.",
"parameters": [
{
"name": "Foundry-Features",
Expand Down Expand Up @@ -34148,8 +34148,7 @@
"OpenAI.FileSearchTool": {
"type": "object",
"required": [
"type",
"vector_store_ids"
"type"
],
"properties": {
"type": {
Expand All @@ -34161,13 +34160,6 @@
"x-stainless-const": true,
"default": "file_search"
},
"vector_store_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The IDs of the vector stores to search."
},
"max_num_results": {
"allOf": [
{
Expand Down Expand Up @@ -34206,6 +34198,13 @@
"$ref": "#/components/schemas/ToolConfig"
},
"description": "Per-tool configuration map. Keys are tool names or `*` (catch-all default).\nResolution order: exact tool name match takes priority over `*`.\nUnknown tool names are silently ignored at runtime."
},
"vector_store_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The IDs of the vector stores to search."
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,6 @@ paths:
description: |-
Stops a session.
Returns 204 No Content when the stop succeeds.
Returns a failed session resource when the stop attempt fails.
parameters:
- name: Foundry-Features
in: header
Expand Down Expand Up @@ -23325,7 +23324,6 @@ components:
type: object
required:
- type
- vector_store_ids
properties:
type:
type: string
Expand All @@ -23334,11 +23332,6 @@ components:
description: The type of the file search tool. Always `file_search`.
x-stainless-const: true
default: file_search
vector_store_ids:
type: array
items:
type: string
description: The IDs of the vector stores to search.
max_num_results:
allOf:
- $ref: '#/components/schemas/OpenAI.integer'
Expand All @@ -23365,6 +23358,11 @@ components:
Per-tool configuration map. Keys are tool names or `*` (catch-all default).
Resolution order: exact tool name match takes priority over `*`.
Unknown tool names are silently ignored at runtime.
vector_store_ids:
type: array
items:
type: string
description: The IDs of the vector stores to search.
allOf:
- $ref: '#/components/schemas/OpenAI.Tool'
description: A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "../memory-stores/models.tsp";
import "../memory-stores/models.tsp";

using Azure.Core.Experimental;
using TypeSpec.Versioning;
Expand Down Expand Up @@ -120,9 +120,14 @@ namespace Azure.AI.Projects {
}
);

#suppress "@azure-tools/typespec-azure-core/experimental-feature" "Using experimental feature"
@@withoutOmittedProperties(OpenAI.FileSearchTool, "vector_store_ids");
#suppress "@azure-tools/typespec-azure-core/experimental-feature" "Using experimental feature"
@@copyProperties(OpenAI.FileSearchTool,
{
/** The IDs of the vector stores to search. */
vector_store_ids?: string[],

...ToolNameAndDescriptionExtension,
...ToolConfigExtension,
}
Expand Down
Loading