mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: Clean up imports (#2318)
* chore: tidy imports * Update python/packages/azurefunctions/agent_framework_azurefunctions/_errors.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update python/packages/azurefunctions/agent_framework_azurefunctions/_callbacks.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: revert stub file change * chore: trigger pre-commit hook, re-add `annotations` import --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
b3e96b80ae
commit
79bb87061b
@@ -1021,7 +1021,7 @@ def use_observability(
|
||||
.. code-block:: python
|
||||
|
||||
from agent_framework import use_observability, setup_observability
|
||||
from agent_framework._clients import ChatClientProtocol
|
||||
from agent_framework import ChatClientProtocol
|
||||
|
||||
|
||||
# Decorate a custom chat client class
|
||||
|
||||
@@ -1693,7 +1693,7 @@ def mock_function() -> AIFunction[Any, Any]:
|
||||
@pytest.fixture
|
||||
def mock_chat_client() -> Any:
|
||||
"""Mock chat client for testing."""
|
||||
from agent_framework._clients import ChatClientProtocol
|
||||
from agent_framework import ChatClientProtocol
|
||||
|
||||
client = MagicMock(spec=ChatClientProtocol)
|
||||
client.service_url = MagicMock(return_value="mock://test")
|
||||
|
||||
Reference in New Issue
Block a user