mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-21 07:02:11 +00:00
20 lines
705 B
Python
20 lines
705 B
Python
![]() |
"""
|
||
|
The :mod:`agnext.worker.protos` module provides Google Protobuf classes for agent-worker communication
|
||
|
"""
|
||
|
|
||
|
import os
|
||
|
import sys
|
||
|
|
||
|
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
|
||
|
|
||
|
from typing import TYPE_CHECKING
|
||
|
|
||
|
from .agent_worker_pb2 import Event, Message, RegisterAgentType, RpcRequest, RpcResponse, AgentId
|
||
|
from .agent_worker_pb2_grpc import AgentRpcStub
|
||
|
|
||
|
if TYPE_CHECKING:
|
||
|
from .agent_worker_pb2_grpc import AgentRpcAsyncStub
|
||
|
__all__ = ["RpcRequest", "RpcResponse", "Event", "RegisterAgentType", "AgentRpcAsyncStub", "AgentRpcStub", "Message", "AgentId"]
|
||
|
else:
|
||
|
__all__ = ["RpcRequest", "RpcResponse", "Event", "RegisterAgentType", "AgentRpcStub", "Message", "AgentId"]
|