Azure.AI.Agents (preview:2025-05-15)

2025/08/13 • 2 updated methods

RunSteps_ListRunSteps (updated)
Description Gets a list of run steps from a thread run.
Reference Link ¶

⚶ Changes

{
  "#id": "RunSteps_ListRunSteps",
  "$responses": {
    "200": {
      "$properties": {
        "data": {
          "$properties": [
            {
              "#name": "type",
              "Enum": {
                "new": [
                  [
                    "message_creation",
                    "Represents a run step to create a message."
                  ],
                  [
                    "tool_calls",
                    "Represents a run step that calls tools."
                  ],
                  [
                    "activities",
                    "Represents a run step with activities information."
                  ]
                ],
                "old": [
                  [
                    "message_creation",
                    "Represents a run step to create a message."
                  ],
                  [
                    "tool_calls",
                    "Represents a run step that calls tools."
                  ]
                ]
              }
            },
            {
              "step_details": [
                {
                  "#name": "type",
                  "Enum": {
                    "new": [
                      [
                        "message_creation",
                        "Represents a run step to create a message."
                      ],
                      [
                        "tool_calls",
                        "Represents a run step that calls tools."
                      ],
                      [
                        "activities",
                        "Represents a run step with activities information."
                      ]
                    ],
                    "old": [
                      [
                        "message_creation",
                        "Represents a run step to create a message."
                      ],
                      [
                        "tool_calls",
                        "Represents a run step that calls tools."
                      ]
                    ]
                  }
                }
              ]
            }
          ]
        }
      }
    }
  }
}

⚼ 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 ,
}
,
}
RunSteps_GetRunStep (updated)
Description Retrieves a single run step from a thread run.
Reference Link ¶

⚶ Changes

{
  "#id": "RunSteps_GetRunStep",
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "type",
          "Enum": {
            "new": [
              [
                "message_creation",
                "Represents a run step to create a message."
              ],
              [
                "tool_calls",
                "Represents a run step that calls tools."
              ],
              [
                "activities",
                "Represents a run step with activities information."
              ]
            ],
            "old": [
              [
                "message_creation",
                "Represents a run step to create a message."
              ],
              [
                "tool_calls",
                "Represents a run step that calls tools."
              ]
            ]
          }
        },
        {
          "step_details": [
            {
              "#name": "type",
              "Enum": {
                "new": [
                  [
                    "message_creation",
                    "Represents a run step to create a message."
                  ],
                  [
                    "tool_calls",
                    "Represents a run step that calls tools."
                  ],
                  [
                    "activities",
                    "Represents a run step with activities information."
                  ]
                ],
                "old": [
                  [
                    "message_creation",
                    "Represents a run step to create a message."
                  ],
                  [
                    "tool_calls",
                    "Represents a run step that calls tools."
                  ]
                ]
              }
            }
          ]
        }
      ]
    }
  }
}

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps/{stepId}
{
api-version: string ,
threadId: string ,
runId: string ,
stepId: string ,
include[]: array ,
}

⚐ Response (200)

{
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 ,
}

⚐ Response (default)

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