Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import sys
from collections.abc import AsyncIterable, MutableMapping, MutableSequence, Sequence
from typing import Any, ClassVar, TypeVar
from typing import TYPE_CHECKING, Any, ClassVar, TypeVar

from agent_framework import (
AGENT_FRAMEWORK_USER_AGENT,
Expand Down Expand Up @@ -98,6 +98,9 @@
else:
from typing_extensions import Self # pragma: no cover

if TYPE_CHECKING:
from agent_framework import ChatAgent


logger = get_logger("agent_framework.azure")

Expand Down Expand Up @@ -1102,3 +1105,6 @@ def service_url(self) -> str:
The service URL for the chat client, or None if not set.
"""
return self.project_client._config.endpoint

def create_agent(self, *, store: bool | None = True, **kwargs: Any) -> "ChatAgent":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is the way, for one, this method lacks all metadata compared to the create_agent method on the BaseClient, so it won't give the right IDE info. It also introduces a difference in creating a agent through this method, vs directly, which I don't like. I'm also not convinced what problem this solves.

return super().create_agent(store=store, **kwargs)