diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 25c093b71a35..1d045151f40f 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -1325,7 +1325,8 @@ { "filename": "sdk/ai/azure-ai-projects/**", "words": [ - "aiservices" + "aiservices", + "OTEL" ] }, { diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml index 9110bbeaac14..17a9a3d2eda0 100644 --- a/eng/.docsettings.yml +++ b/eng/.docsettings.yml @@ -15,6 +15,7 @@ omitted_paths: - sdk/ml/azure-ai-ml/tests/* - sdk/vision/azure-ai-vision-imageanalysis/tests/* - sdk/ai/azure-ai-inference/tests/* + - sdk/ai/azure-ai-projects/tests/* - sdk/storage/azure-storage-extensions/* language: python diff --git a/sdk/ai/azure-ai-projects/README.md b/sdk/ai/azure-ai-projects/README.md index 360b319741db..3f2f99ff9450 100644 --- a/sdk/ai/azure-ai-projects/README.md +++ b/sdk/ai/azure-ai-projects/README.md @@ -223,7 +223,7 @@ You can enhance your agents by defining callback functions as function tools. Th For more details about calling functions by code, refer to [`sample_agents_stream_eventhandler_with_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_stream_eventhandler_with_functions.py) and [`sample_agents_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_functions.py). -Here is an example to use [user functions](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/user_function.py) in `toolset`: +Here is an example to use [user functions](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/user_functions.py) in `toolset`: ```python diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/models/_patch.py b/sdk/ai/azure-ai-projects/azure/ai/projects/models/_patch.py index 62eba59f6a09..9b6ae8fa4b04 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/models/_patch.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/models/_patch.py @@ -18,6 +18,7 @@ import re from azure.core.credentials import TokenCredential, AccessToken +from azure.core.credentials_async import AsyncTokenCredential from ._enums import AgentStreamEvent, ConnectionType from ._models import ( @@ -129,7 +130,10 @@ class ConnectionProperties: """ def __init__( - self, *, connection: GetConnectionResponse, token_credential: Optional[TokenCredential] = None + self, + *, + connection: GetConnectionResponse, + token_credential: Union[TokenCredential, AsyncTokenCredential, None] = None, ) -> None: self.id = connection.id self.name = connection.name diff --git a/sdk/ai/azure-ai-projects/setup.py b/sdk/ai/azure-ai-projects/setup.py index 37a6290f3338..a3190a395e7d 100644 --- a/sdk/ai/azure-ai-projects/setup.py +++ b/sdk/ai/azure-ai-projects/setup.py @@ -13,7 +13,7 @@ PACKAGE_NAME = "azure-ai-projects" -PACKAGE_PPRINT_NAME = "Azure Ai Projects" +PACKAGE_PPRINT_NAME = "Azure AI Projects" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace("-", "/")