Azure.AI.Agents (stable:2025-05-01)

2025/12/09 • 8 updated methods

ListAgents (updated)
Description Gets a list of agents that were previously created.
Reference Link ¶

⚶ Changes

{
  "#id": "ListAgents",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /assistants
{
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Threads_ListThreads (updated)
Description Gets a list of threads that were previously created.
Reference Link ¶

⚶ Changes

{
  "#id": "Threads_ListThreads",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /threads
{
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
Messages_ListMessages (updated)
Description Gets a list of messages that exist on a thread.
Reference Link ¶

⚶ Changes

{
  "#id": "Messages_ListMessages",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /threads/{threadId}/messages
{
threadId: string ,
run_id: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details:
{
reason: enum ,
}
,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
data_source:
{
uri: string ,
type: enum ,
}
,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}
Runs_ListRuns (updated)
Description Gets a list of runs for a specified thread.
Reference Link ¶

⚶ Changes

{
  "#id": "Runs_ListRuns",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /threads/{threadId}/runs
{
threadId: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action:
{
type: string ,
}
,
last_error:
{
code: string ,
message: string ,
}
,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details:
{
reason: enum ,
}
,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy:
{
type: enum ,
last_messages: integer ,
}
,
tool_choice: string ,
response_format: string ,
metadata: object ,
tool_resources:
{
code_interpreter:
{
file_ids:
[
string ,
]
,
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
file_search:
{
vector_store_ids:
[
string ,
]
,
vector_stores:
[
{
name: string ,
configuration:
{
data_sources:
[
{
uri: string ,
type: enum ,
}
,
]
,
}
,
}
,
]
,
}
,
azure_ai_search:
{
indexes:
[
{
index_connection_id: string ,
index_name: string ,
query_type: enum ,
top_k: integer ,
filter: string ,
index_asset_id: string ,
}
,
]
,
}
,
}
,
parallel_tool_calls: boolean ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
RunSteps_ListRunSteps (updated)
Description Gets a list of run steps from a thread run.
Reference Link ¶

⚶ Changes

{
  "#id": "RunSteps_ListRunSteps",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps
{
threadId: string ,
runId: string ,
include[]: array ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
type: enum ,
assistant_id: string ,
thread_id: string ,
run_id: string ,
status: enum ,
step_details:
{
type: enum ,
}
,
last_error:
{
code: enum ,
message: string ,
}
,
created_at: integer ,
expired_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
usage:
{
completion_tokens: integer ,
prompt_tokens: integer ,
total_tokens: integer ,
}
,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStores_ListVectorStores (updated)
Description Returns a list of vector stores.
Reference Link ¶

⚶ Changes

{
  "#id": "VectorStores_ListVectorStores",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /vector_stores
{
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFileBatches_ListVectorStoreFileBatchFiles (updated)
Description Returns a list of vector store files in a batch.
Reference Link ¶

⚶ Changes

{
  "#id": "VectorStoreFileBatches_ListVectorStoreFileBatchFiles",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /vector_stores/{vectorStoreId}/file_batches/{batchId}/files
{
vectorStoreId: string ,
batchId: string ,
filter: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error:
{
code: enum ,
message: string ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}
VectorStoreFiles_ListVectorStoreFiles (updated)
Description Returns a list of vector store files.
Reference Link ¶

⚶ Changes

{
  "#id": "VectorStoreFiles_ListVectorStoreFiles",
  "$parameters": [
    {
      "#name": "limit",
      "Description": {
        "new": "A limit on the number of objects to be returned on one page. Limit can range between 1 and 100, and the default is 20.",
        "old": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."
      }
    }
  ]
}

⚼ Request

GET:  /vector_stores/{vectorStoreId}/files
{
vectorStoreId: string ,
filter: string ,
api-version: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error:
{
code: enum ,
message: string ,
}
,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
last_id: string ,
has_more: boolean ,
}

⚐ Response (default)

{
error:
{
message: string ,
type: string ,
param: string ,
code: string ,
}
,
}