We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f7a2a commit 19605b3Copy full SHA for 19605b3
articles/ai-services/agents/includes/azure-search/code-examples.md
@@ -97,8 +97,7 @@ conn_id = "/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-
97
98
# Initialize agent AI search tool and add the search index connection ID and index name
99
# TO DO: replace <your-index-name> with the name of the index you want to use
100
-ai_search = AzureAISearchTool()
101
-ai_search.add_index(conn_id, "<your-index-name>")
+ai_search = AzureAISearchTool(index_connection_id=conn_id, index_name="<your-index-name>")
102
```
103
# [C#](#tab/csharp)
104
```csharp
0 commit comments