AI-901 Implement AI solutions by using Microsoft Foundry EASY
PRODUCTION SCENARIO
A Python client asks a Foundry agent which regions a product ships to, then asks how long delivery takes. Each responses.create call is sent on its own, and the agent answers the second question as if it were unrelated.

Which change gives the agent the earlier turn?

Answering here is anonymous. Nothing is saved unless you sign in.

Show answer and explanation

Answer: Create a conversation and pass its id on each request

The quickstart creates a conversation and passes conversation=conversation.id on each responses.create call, and 'the conversation maintains history across these interactions'. Binding the client to the same agent name reuses the definition, not the state. A new agent version snapshots the definition. File search grounds the agent in uploaded documents and holds no turn history.
Free

Keep practicing AI-901

50 original AI-901 practice questions, each with an explanation and a source link. No account needed.

Start free practice set → Timed, explained, free