Skip to content

Commit 19605b3

Browse files
committed
updating docs to reflect sdk updates
1 parent 31f7a2a commit 19605b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/ai-services/agents/includes/azure-search/code-examples.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ conn_id = "/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-
9797

9898
# Initialize agent AI search tool and add the search index connection ID and index name
9999
# 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>")
100+
ai_search = AzureAISearchTool(index_connection_id=conn_id, index_name="<your-index-name>")
102101
```
103102
# [C#](#tab/csharp)
104103
```csharp

0 commit comments

Comments
 (0)