| @@ -87,7 +87,7 @@ check = ["fmt", "lint", "pyright", "mypy", "coverage"] | |||||
| gen-proto = "python -m grpc_tools.protoc --python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --grpc_python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_grpc_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --proto_path ../protos/ agent_worker.proto --proto_path ../protos/ cloudevent.proto" | gen-proto = "python -m grpc_tools.protoc --python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --grpc_python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_grpc_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --proto_path ../protos/ agent_worker.proto --proto_path ../protos/ cloudevent.proto" | ||||
| gen-proto-samples = "python -m grpc_tools.protoc --python_out=./packages/autogen-core/samples/protos --grpc_python_out=./packages/autogen-core/samples/protos --mypy_out=./packages/autogen-core/samples/protos --mypy_grpc_out=./packages/autogen-core/samples/protos --proto_path ../protos/ agent_events.proto" | |||||
| gen-proto-samples = "python -m grpc_tools.protoc --python_out=./samples/core_xlang_hello_python_agent/protos --grpc_python_out=./samples/core_xlang_hello_python_agent/protos --mypy_out=./samples/core_xlang_hello_python_agent/protos --mypy_grpc_out=./samples/core_xlang_hello_python_agent/protos --proto_path ../protos/ agent_events.proto" | |||||
| markdown-code-lint = """python check_md_code_blocks.py ../README.md ./packages/autogen-core/docs/src/**/*.md""" | markdown-code-lint = """python check_md_code_blocks.py ../README.md ./packages/autogen-core/docs/src/**/*.md""" | ||||
| @@ -4,10 +4,11 @@ and make moves, and using a group chat manager to orchestrate the conversation." | |||||
| import argparse | import argparse | ||||
| import asyncio | import asyncio | ||||
| from dataclasses import dataclass | |||||
| import logging | import logging | ||||
| from dataclasses import dataclass | |||||
| from typing import Annotated, Literal | from typing import Annotated, Literal | ||||
| from agents import ChatCompletionAgent | |||||
| from autogen_core import ( | from autogen_core import ( | ||||
| AgentId, | AgentId, | ||||
| AgentInstantiationContext, | AgentInstantiationContext, | ||||
| @@ -21,11 +22,11 @@ from autogen_core.models import SystemMessage | |||||
| from autogen_core.tools import FunctionTool | from autogen_core.tools import FunctionTool | ||||
| from chess import BLACK, SQUARE_NAMES, WHITE, Board, Move | from chess import BLACK, SQUARE_NAMES, WHITE, Board, Move | ||||
| from chess import piece_name as get_piece_name | from chess import piece_name as get_piece_name | ||||
| from pydantic import BaseModel | |||||
| from agents import ChatCompletionAgent | |||||
| from patterns import GroupChatManager | from patterns import GroupChatManager | ||||
| from pydantic import BaseModel | |||||
| from utils import get_chat_completion_client_from_envs | from utils import get_chat_completion_client_from_envs | ||||
| @dataclass | @dataclass | ||||
| class TextMessage(BaseModel): | class TextMessage(BaseModel): | ||||
| source: str | source: str | ||||