Skip to content

Commit 0fb76f9

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 64f5feb commit 0fb76f9

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
@@ -310,6 +310,9 @@ interface Agents {
310310
@path agent_name: string;
311311

312312
...CommonPageQueryParameters;
313+
314+
/** Whether to include draft versions in the listing. Defaults to false (only non-draft versions are returned). */
315+
@query include_drafts?: boolean = false;
313316
},
314317
AgentsPagedResult<AgentVersionObject>
315318
>;

0 commit comments

Comments
 (0)