mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-11 14:05:00 -05:00
Migrate model context and models modules out of components (#4613)
* Move model context out of components * move models out of components * rename docs file
This commit is contained in:
@@ -11,8 +11,9 @@ from autogen_core import (
|
||||
RoutedAgent,
|
||||
message_handler,
|
||||
)
|
||||
from autogen_core.components.model_context import ChatCompletionContext
|
||||
from autogen_core.components.models import (
|
||||
from autogen_core.components.tools import Tool
|
||||
from autogen_core.model_context import ChatCompletionContext
|
||||
from autogen_core.models import (
|
||||
AssistantMessage,
|
||||
ChatCompletionClient,
|
||||
FunctionExecutionResult,
|
||||
@@ -20,7 +21,6 @@ from autogen_core.components.models import (
|
||||
SystemMessage,
|
||||
UserMessage,
|
||||
)
|
||||
from autogen_core.components.tools import Tool
|
||||
|
||||
from ..types import (
|
||||
FunctionCallMessage,
|
||||
|
||||
@@ -2,8 +2,8 @@ import logging
|
||||
from typing import Any, Callable, List, Mapping
|
||||
|
||||
from autogen_core import AgentId, AgentProxy, MessageContext, RoutedAgent, message_handler
|
||||
from autogen_core.components.model_context import ChatCompletionContext
|
||||
from autogen_core.components.models import ChatCompletionClient, UserMessage
|
||||
from autogen_core.model_context import ChatCompletionContext
|
||||
from autogen_core.models import ChatCompletionClient, UserMessage
|
||||
|
||||
from ..types import (
|
||||
MultiModalMessage,
|
||||
|
||||
@@ -4,8 +4,8 @@ import re
|
||||
from typing import Dict, List
|
||||
|
||||
from autogen_core import AgentProxy
|
||||
from autogen_core.components.model_context import ChatCompletionContext
|
||||
from autogen_core.components.models import ChatCompletionClient, SystemMessage, UserMessage
|
||||
from autogen_core.model_context import ChatCompletionContext
|
||||
from autogen_core.models import ChatCompletionClient, SystemMessage, UserMessage
|
||||
|
||||
|
||||
async def select_speaker(context: ChatCompletionContext, client: ChatCompletionClient, agents: List[AgentProxy]) -> int:
|
||||
|
||||
@@ -5,7 +5,7 @@ from enum import Enum
|
||||
from typing import List, Union
|
||||
|
||||
from autogen_core import FunctionCall, Image
|
||||
from autogen_core.components.models import FunctionExecutionResultMessage
|
||||
from autogen_core.models import FunctionExecutionResultMessage
|
||||
|
||||
|
||||
@dataclass(kw_only=True)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
from typing import Any, List, Optional, Union
|
||||
|
||||
from autogen_core.components.models import (
|
||||
from autogen_core.models import (
|
||||
AssistantMessage,
|
||||
ChatCompletionClient,
|
||||
FunctionExecutionResult,
|
||||
|
||||
Reference in New Issue
Block a user