@@ -38,29 +38,29 @@ def __init__(self, outer_instance: "azure.ai.projects.onedp.aio.AIProjectClient"
38
38
self ._outer_instance = outer_instance
39
39
40
40
@distributed_trace
41
- def get_client (self , ** kwargs ) -> "AssistantClient " : # type: ignore[name-defined]
42
- """Get an authenticated asynchronous AssistantClient (from the package azure-ai-assistants) to use with
41
+ def get_client (self , ** kwargs ) -> "AssistantsClient " : # type: ignore[name-defined]
42
+ """Get an authenticated asynchronous AssistantsClient (from the package azure-ai-assistants) to use with
43
43
your AI Foundry Project. Keyword arguments are passed to the constructor of
44
44
ChatCompletionsClient.
45
45
46
46
.. note:: The package `azure-ai-assistants` must be installed prior to calling this method.
47
47
48
48
:return: An authenticated Assistant Client.
49
- :rtype: ~azure.ai.assistants.AssistantClient
49
+ :rtype: ~azure.ai.assistants.AssistantsClient
50
50
51
51
:raises ~azure.core.exceptions.ModuleNotFoundError: if the `azure-ai-assistants` package
52
52
is not installed.
53
53
:raises ~azure.core.exceptions.HttpResponseError:
54
54
"""
55
55
56
56
try :
57
- from azure .ai .assistants .aio import AssistantClient
57
+ from azure .ai .assistants .aio import AssistantsClient
58
58
except ModuleNotFoundError as e :
59
59
raise ModuleNotFoundError (
60
60
"Azure AI Assistant SDK is not installed. Please install it using 'pip install azure-ai-assistants'"
61
61
) from e
62
62
63
- client = AssistantClient (
63
+ client = AssistantsClient (
64
64
endpoint = self ._outer_instance ._config .endpoint , # pylint: disable=protected-access
65
65
credential = self ._outer_instance ._config .credential , # pylint: disable=protected-access
66
66
user_agent = kwargs .pop ("user_agent" , self ._user_agent ),
0 commit comments