Skip to content

Commit 636130f

Browse files
akailaCopilot
andcommitted
feat: add include_drafts query parameter to listAgentVersions
Adds an optional boolean query parameter 'include_drafts' (default: false) to the list agent versions endpoint. When false, only non-draft versions are returned. When true, both draft and non-draft versions are included. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cd6bf61 commit 636130f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • specification/ai-foundry/data-plane/Foundry/src/agents

specification/ai-foundry/data-plane/Foundry/src/agents/routes.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ interface Agents {
192192
@path agent_name: string;
193193

194194
...CommonPageQueryParameters;
195+
196+
/** Whether to include draft versions in the listing. Defaults to false (only non-draft versions are returned). */
197+
@query include_drafts?: boolean = false;
195198
},
196199
AgentsPagedResult<AgentVersionObject>
197200
>;

0 commit comments

Comments
 (0)