mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Flatten core base and components (#4513)
* Flatten core base and components * remove extra files * dont export from deprecated locations * format * fmt
This commit is contained in:
@@ -8,7 +8,7 @@ import tempfile
|
||||
|
||||
import pytest
|
||||
from anyio import open_file
|
||||
from autogen_core.base import CancellationToken
|
||||
from autogen_core import CancellationToken
|
||||
from autogen_core.components.code_executor import CodeBlock
|
||||
from autogen_ext.code_executors import ACADynamicSessionsCodeExecutor
|
||||
from azure.identity import DefaultAzureCredential
|
||||
|
||||
@@ -5,7 +5,7 @@ import os
|
||||
|
||||
import polars
|
||||
import pytest
|
||||
from autogen_core.base import CancellationToken
|
||||
from autogen_core import CancellationToken
|
||||
from autogen_core.components.code_executor import (
|
||||
CodeBlock,
|
||||
FunctionWithRequirements,
|
||||
|
||||
@@ -8,7 +8,7 @@ from typing import AsyncGenerator, TypeAlias
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
from aiofiles import open
|
||||
from autogen_core.base import CancellationToken
|
||||
from autogen_core import CancellationToken
|
||||
from autogen_core.components.code_executor import CodeBlock
|
||||
from autogen_ext.code_executors import DockerCommandLineCodeExecutor
|
||||
|
||||
|
||||
@@ -3,8 +3,7 @@ from typing import Annotated, Any, AsyncGenerator, List, Tuple
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
from autogen_core.base import CancellationToken
|
||||
from autogen_core.components import Image
|
||||
from autogen_core import CancellationToken, Image
|
||||
from autogen_core.components.models import (
|
||||
AssistantMessage,
|
||||
CreateResult,
|
||||
|
||||
@@ -3,9 +3,8 @@ from dataclasses import dataclass
|
||||
from typing import List
|
||||
|
||||
import pytest
|
||||
from autogen_core import AgentId, DefaultTopicId, MessageContext, RoutedAgent, default_subscription, message_handler
|
||||
from autogen_core.application import SingleThreadedAgentRuntime
|
||||
from autogen_core.base import AgentId, MessageContext
|
||||
from autogen_core.components import DefaultTopicId, RoutedAgent, default_subscription, message_handler
|
||||
from autogen_core.components.models import ChatCompletionClient, CreateResult, SystemMessage, UserMessage
|
||||
from autogen_ext.models import ReplayChatCompletionClient
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from typing import List, Literal, Optional, Union
|
||||
|
||||
import pytest
|
||||
from autogen_agentchat.messages import TextMessage
|
||||
from autogen_core.base import CancellationToken
|
||||
from autogen_core import CancellationToken
|
||||
from autogen_core.components.tools._base import BaseTool, Tool
|
||||
from autogen_ext.agents import OpenAIAssistantAgent
|
||||
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from typing import Optional, Type
|
||||
|
||||
import pytest
|
||||
from autogen_core.base import CancellationToken
|
||||
from autogen_core import CancellationToken
|
||||
from autogen_ext.tools import LangChainToolAdapter # type: ignore
|
||||
from langchain_core.callbacks.manager import AsyncCallbackManagerForToolRun, CallbackManagerForToolRun
|
||||
from langchain_core.tools import BaseTool as LangChainTool
|
||||
|
||||
Reference in New Issue
Block a user