Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,8 @@
{
"filename": "sdk/ai/azure-ai-projects/**",
"words": [
"aiservices"
"aiservices",
"OTEL"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/azure-ai-projects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
<!-- SNIPPET:sample_agents_stream_eventhandler_with_toolset.create_agent_with_function_tool -->

```python
Expand Down
6 changes: 5 additions & 1 deletion sdk/ai/azure-ai-projects/azure/ai/projects/models/_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/azure-ai-projects/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("-", "/")
Expand Down
Loading