mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: [BREAKING] Remove deprecated Python OpenAI/Azure AI surfaces (#4990)
* [BREAKING] Remove deprecated Python OpenAI/Azure AI surfaces Also clean up follow-on docs, environment guidance, package metadata, and lab test stability. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix deleted semantic-kernel sample links Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Address PR review feedback Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * improve foundry language * Fix A2A Foundry sample regression Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
a5eacbbe65
commit
3a49b1d6dd
@@ -2,6 +2,13 @@
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
try:
|
||||
from litellm import completion as _litellm_completion # noqa: F401
|
||||
except Exception:
|
||||
pytest.skip("LiteLLM import surface required by tau2 is unavailable.", allow_module_level=True)
|
||||
|
||||
from agent_framework._types import Content, Message
|
||||
from agent_framework_lab_tau2._message_utils import flip_messages, log_messages
|
||||
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
try:
|
||||
from litellm import completion as _litellm_completion # noqa: F401
|
||||
except Exception:
|
||||
pytest.skip("LiteLLM import surface required by tau2 is unavailable.", allow_module_level=True)
|
||||
|
||||
from agent_framework import InMemoryHistoryProvider
|
||||
from agent_framework._types import Content, Message
|
||||
from agent_framework_lab_tau2._sliding_window import SlidingWindowHistoryProvider
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
|
||||
"""Tests for tau2 utils module."""
|
||||
|
||||
import pytest
|
||||
|
||||
try:
|
||||
from litellm import completion as _litellm_completion # noqa: F401
|
||||
except Exception:
|
||||
pytest.skip("LiteLLM import surface required by tau2 is unavailable.", allow_module_level=True)
|
||||
|
||||
from agent_framework import Content, FunctionTool, Message
|
||||
from agent_framework_lab_tau2._tau2_utils import (
|
||||
convert_agent_framework_messages_to_tau2_messages,
|
||||
|
||||
Reference in New Issue
Block a user