You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newTextContent("I need you to help me search for 'OpenAI news'. Please type 'OpenAI news' and submit the search. Once you see search results, the task is complete."),
Copy file name to clipboardExpand all lines: dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step15_ComputerUse/README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,17 @@
2
2
3
3
This sample demonstrates how to use the computer use tool with AI agents. The computer use tool allows agents to interact with a computer environment by viewing the screen, controlling the mouse and keyboard, and performing various actions to help complete tasks.
4
4
5
+
> [!NOTE]
6
+
> **Azure Agents API vs. vanilla OpenAI Responses API behavior:**
7
+
> The Azure Agents API rejects requests that include `previous_response_id` alongside
8
+
> `computer_call_output` items — unlike the vanilla OpenAI Responses API, which accepts them.
9
+
> This sample works around the limitation by creating a **fresh session for each follow-up call**
10
+
> (so no `previous_response_id` is carried over) and re-sending all prior response output items
11
+
> (reasoning, computer_call, etc.) as input items to preserve full conversation context.
12
+
> Additionally, the sample uses the **current**`CallId` from each computer call response
13
+
> (not the initial one) and clears the `ContinuationToken` after polling completes to prevent
14
+
> stale tokens from affecting subsequent requests.
0 commit comments