2024-06-28 08:03:42 -07:00
|
|
|
"""
|
|
|
|
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
|
|
|
|
|
2024-08-19 07:06:41 -07:00
|
|
|
from .agent_worker_pb2 import AgentId, Event, Message, RegisterAgentType, RpcRequest, RpcResponse
|
|
|
|
from .agent_worker_pb2_grpc import AgentRpcServicer, AgentRpcStub, add_AgentRpcServicer_to_server
|
2024-06-28 08:03:42 -07:00
|
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
from .agent_worker_pb2_grpc import AgentRpcAsyncStub
|
2024-08-19 07:06:41 -07:00
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
"RpcRequest",
|
|
|
|
"RpcResponse",
|
|
|
|
"Event",
|
|
|
|
"RegisterAgentType",
|
|
|
|
"AgentRpcAsyncStub",
|
|
|
|
"AgentRpcStub",
|
|
|
|
"Message",
|
|
|
|
"AgentId",
|
|
|
|
]
|
2024-06-28 08:03:42 -07:00
|
|
|
else:
|
|
|
|
__all__ = ["RpcRequest", "RpcResponse", "Event", "RegisterAgentType", "AgentRpcStub", "Message", "AgentId"]
|