You are building an agent with Azure AI Agent Service. The agent must consult a product catalog stored in an Azure AI Search index before answering questions, and you want the retrieval to happen automatically on every run without writing any orchestration code. You have already created the index and a project connection to it. Which configuration should you apply to the agent?
Knowledge tools are the built-in retrieval mechanism for Azure AI Agent Service. Once the search index is attached as a knowledge tool with a valid project connection, the service decides when to query it and injects the retrieved passages into the model context, so no application-side orchestration code is required for the automatic retrieval behavior described.
Why this answer
Attaching the Azure AI Search index as a knowledge tool is the native way Azure AI Agent Service performs retrieval-augmented generation. The service manages query formulation, execution against the index through the project connection, and injection of results into the model context, satisfying the no-orchestration-code requirement while reusing the existing index.
Exam trap
The trap here is assuming the model can reach an external search endpoint from instructions alone, when retrieval must be exposed as a tool backed by a project connection.