Files
agent-framework/dotnet/samples/GettingStarted
T
Roger Barreto c3eca2567a .NET: Fix FoundryAgents_Step15_ComputerUse sample for Azure Agents API (#3989)
* Fix FoundryAgents_Step15_ComputerUse sample for Azure Agents API

The Azure Agents API rejects previous_response_id alongside computer_call_output
items, unlike the vanilla OpenAI Responses API. This fix:

- Send all prior response output items (reasoning, computer_call, etc.) as input
  items in follow-up calls so the API has full conversation context
- Create a fresh session per call to avoid ConversationId/previous_response_id
- Use currentCallId instead of initialCallId for computer_call_output
- Clear ContinuationToken after polling to prevent stale tokens
- Remove unused initialCallId tracking variable

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address comments

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
c3eca2567a ยท 2026-02-19 08:28:00 +00:00
History
..
2026-02-17 15:10:53 +00:00

Getting started

The getting started samples demonstrate the fundamental concepts and functionalities of the agent framework.

Samples

Sample Description
Agents Step by step instructions for getting started with agents
Foundry Agents Getting started with Azure Foundry Agents
Agent Providers Getting started with creating agents using various providers
Agents With Retrieval Augmented Generation (RAG) Adding Retrieval Augmented Generation (RAG) capabilities to your agents.
Agents With Memory Adding Memory capabilities to your agents.
A2A Getting started with A2A (Agent-to-Agent) specific features
Agent Open Telemetry Getting started with OpenTelemetry for agents
Agent With OpenAI exchange types Using OpenAI exchange types with agents
Agent With Anthropic Getting started with agents using Anthropic Claude
Workflow Getting started with Workflow
Model Context Protocol Getting started with Model Context Protocol