mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-02 11:37:55 +00:00

* 1) Removed most framework sleeps 2) refactored connection code * pre-commit fixes * pre-commit * ignore protobuf files in pre-commit checks * Fix duplicate actor registration * refactor change * Nicer printing of Actors * 1) Report recv_multipart errors 4) Always send 4 parts * AutoGen generate_reply expects to wait indefinitely for an answer. CAP can wait a certain amount and give up. In order to reconcile the two, AutoGenConnector is set to wait indefinitely. * pre-commit formatting fixes * pre-commit format changes * don't check autogenerated proto py files
80 lines
2.7 KiB
Python
80 lines
2.7 KiB
Python
from google.protobuf.internal import containers as _containers
|
|
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from typing import (
|
|
ClassVar as _ClassVar,
|
|
Iterable as _Iterable,
|
|
Mapping as _Mapping,
|
|
Optional as _Optional,
|
|
Union as _Union,
|
|
)
|
|
|
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
|
|
class ErrorCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
__slots__ = ()
|
|
EC_OK: _ClassVar[ErrorCode]
|
|
EC_NOT_FOUND: _ClassVar[ErrorCode]
|
|
EC_ALREADY_EXISTS: _ClassVar[ErrorCode]
|
|
EC_MAX: _ClassVar[ErrorCode]
|
|
|
|
EC_OK: ErrorCode
|
|
EC_NOT_FOUND: ErrorCode
|
|
EC_ALREADY_EXISTS: ErrorCode
|
|
EC_MAX: ErrorCode
|
|
|
|
class Error(_message.Message):
|
|
__slots__ = ("code", "message")
|
|
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
code: ErrorCode
|
|
message: str
|
|
def __init__(self, code: _Optional[_Union[ErrorCode, str]] = ..., message: _Optional[str] = ...) -> None: ...
|
|
|
|
class ActorInfo(_message.Message):
|
|
__slots__ = ("name", "namespace", "description")
|
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
name: str
|
|
namespace: str
|
|
description: str
|
|
def __init__(
|
|
self, name: _Optional[str] = ..., namespace: _Optional[str] = ..., description: _Optional[str] = ...
|
|
) -> None: ...
|
|
|
|
class ActorRegistration(_message.Message):
|
|
__slots__ = ("actor_info",)
|
|
ACTOR_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
actor_info: ActorInfo
|
|
def __init__(self, actor_info: _Optional[_Union[ActorInfo, _Mapping]] = ...) -> None: ...
|
|
|
|
class ActorLookup(_message.Message):
|
|
__slots__ = ("actor_info",)
|
|
ACTOR_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
actor_info: ActorInfo
|
|
def __init__(self, actor_info: _Optional[_Union[ActorInfo, _Mapping]] = ...) -> None: ...
|
|
|
|
class ActorInfoCollection(_message.Message):
|
|
__slots__ = ("info_coll",)
|
|
INFO_COLL_FIELD_NUMBER: _ClassVar[int]
|
|
info_coll: _containers.RepeatedCompositeFieldContainer[ActorInfo]
|
|
def __init__(self, info_coll: _Optional[_Iterable[_Union[ActorInfo, _Mapping]]] = ...) -> None: ...
|
|
|
|
class ActorLookupResponse(_message.Message):
|
|
__slots__ = ("found", "actor")
|
|
FOUND_FIELD_NUMBER: _ClassVar[int]
|
|
ACTOR_FIELD_NUMBER: _ClassVar[int]
|
|
found: bool
|
|
actor: ActorInfoCollection
|
|
def __init__(self, found: bool = ..., actor: _Optional[_Union[ActorInfoCollection, _Mapping]] = ...) -> None: ...
|
|
|
|
class Ping(_message.Message):
|
|
__slots__ = ()
|
|
def __init__(self) -> None: ...
|
|
|
|
class Pong(_message.Message):
|
|
__slots__ = ()
|
|
def __init__(self) -> None: ...
|