hostel-protocol 0.2.2__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/PKG-INFO +1 -1
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/agent_pb2_grpc.py +3 -3
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/chat_pb2.py +9 -7
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/chat_pb2.pyi +14 -2
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/chat_pb2_grpc.py +3 -3
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/component_pb2_grpc.py +3 -3
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/task_pb2_grpc.py +3 -3
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel_protocol.egg-info/PKG-INFO +1 -1
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/pyproject.toml +1 -1
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/agent_pb2.py +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/agent_pb2.pyi +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/component_pb2.py +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/component_pb2.pyi +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/message_pb2.py +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/message_pb2.pyi +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/message_pb2_grpc.py +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/task_pb2.py +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel/protocol/v1/task_pb2.pyi +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel_protocol.egg-info/SOURCES.txt +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel_protocol.egg-info/dependency_links.txt +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel_protocol.egg-info/requires.txt +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel_protocol.egg-info/top_level.txt +0 -0
- {hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/setup.cfg +0 -0
|
@@ -5,7 +5,7 @@ import grpc
|
|
|
5
5
|
from hostel.protocol.v1 import agent_pb2 as hostel_dot_protocol_dot_v1_dot_agent__pb2
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class AgentServiceStub
|
|
8
|
+
class AgentServiceStub:
|
|
9
9
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
10
10
|
|
|
11
11
|
"""
|
|
@@ -23,7 +23,7 @@ class AgentServiceStub(object):
|
|
|
23
23
|
_registered_method=True)
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class AgentServiceServicer
|
|
26
|
+
class AgentServiceServicer:
|
|
27
27
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
28
28
|
|
|
29
29
|
"""
|
|
@@ -50,7 +50,7 @@ def add_AgentServiceServicer_to_server(servicer, server):
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
# This class is part of an EXPERIMENTAL API.
|
|
53
|
-
class AgentService
|
|
53
|
+
class AgentService:
|
|
54
54
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
55
55
|
|
|
56
56
|
"""
|
|
@@ -25,13 +25,15 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dhostel/protocol/v1/chat.proto\x12\x12hostel.protocol.v1\x1a\x1cgoogle/protobuf/struct.proto\"\xc6\x01\n\x0b\x43hatMessage\x12<\n\x05human\x18\x01 \x01(\x0b\x32$.hostel.protocol.v1.HumanChatMessageH\x00R\x05human\x12\x33\n\x02\x61i\x18\x02 \x01(\x0b\x32!.hostel.protocol.v1.AIChatMessageH\x00R\x02\x61i\x12\x39\n\x04tool\x18\x03 \x01(\x0b\x32#.hostel.protocol.v1.ToolChatMessageH\x00R\x04toolB\t\n\x07message\",\n\x10HumanChatMessage\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\")\n\rAIChatMessage\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\"H\n\x0fToolChatMessage\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\x12\x1b\n\ttool_name\x18\x02 \x01(\tR\x08toolName\"
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dhostel/protocol/v1/chat.proto\x12\x12hostel.protocol.v1\x1a\x1cgoogle/protobuf/struct.proto\"\xc6\x01\n\x0b\x43hatMessage\x12<\n\x05human\x18\x01 \x01(\x0b\x32$.hostel.protocol.v1.HumanChatMessageH\x00R\x05human\x12\x33\n\x02\x61i\x18\x02 \x01(\x0b\x32!.hostel.protocol.v1.AIChatMessageH\x00R\x02\x61i\x12\x39\n\x04tool\x18\x03 \x01(\x0b\x32#.hostel.protocol.v1.ToolChatMessageH\x00R\x04toolB\t\n\x07message\",\n\x10HumanChatMessage\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\")\n\rAIChatMessage\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\"H\n\x0fToolChatMessage\x12\x18\n\x07\x63ontent\x18\x01 \x01(\tR\x07\x63ontent\x12\x1b\n\ttool_name\x18\x02 \x01(\tR\x08toolName\"\xe4\x01\n\x0b\x43hatRequest\x12\x1d\n\nagent_name\x18\x01 \x01(\tR\tagentName\x12;\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.hostel.protocol.v1.ChatMessageR\x08messages\x12\x45\n\rplanning_mode\x18\x03 \x01(\x0e\x32 .hostel.protocol.v1.PlanningModeR\x0cplanningMode\x12\x32\n\x15require_plan_approval\x18\x04 \x01(\x08R\x13requirePlanApproval\"j\n\x0c\x43hatResponse\x12\x12\n\x04role\x18\x01 \x01(\tR\x04role\x12\x14\n\x05scope\x18\x02 \x01(\tR\x05scope\x12\x30\n\x07\x63ontent\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueR\x07\x63ontent*K\n\x0cPlanningMode\x12\x17\n\x13PLANNING_MODE_REACT\x10\x00\x12\"\n\x1ePLANNING_MODE_PLAN_AND_EXECUTE\x10\x01\x32Z\n\x0b\x43hatService\x12K\n\x04\x43hat\x12\x1f.hostel.protocol.v1.ChatRequest\x1a .hostel.protocol.v1.ChatResponse0\x01\x62\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
32
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hostel.protocol.v1.chat_pb2', _globals)
|
|
33
33
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
34
|
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_PLANNINGMODE']._serialized_start=786
|
|
36
|
+
_globals['_PLANNINGMODE']._serialized_end=861
|
|
35
37
|
_globals['_CHATMESSAGE']._serialized_start=84
|
|
36
38
|
_globals['_CHATMESSAGE']._serialized_end=282
|
|
37
39
|
_globals['_HUMANCHATMESSAGE']._serialized_start=284
|
|
@@ -40,10 +42,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
40
42
|
_globals['_AICHATMESSAGE']._serialized_end=371
|
|
41
43
|
_globals['_TOOLCHATMESSAGE']._serialized_start=373
|
|
42
44
|
_globals['_TOOLCHATMESSAGE']._serialized_end=445
|
|
43
|
-
_globals['_CHATREQUEST']._serialized_start=
|
|
44
|
-
_globals['_CHATREQUEST']._serialized_end=
|
|
45
|
-
_globals['_CHATRESPONSE']._serialized_start=
|
|
46
|
-
_globals['_CHATRESPONSE']._serialized_end=
|
|
47
|
-
_globals['_CHATSERVICE']._serialized_start=
|
|
48
|
-
_globals['_CHATSERVICE']._serialized_end=
|
|
45
|
+
_globals['_CHATREQUEST']._serialized_start=448
|
|
46
|
+
_globals['_CHATREQUEST']._serialized_end=676
|
|
47
|
+
_globals['_CHATRESPONSE']._serialized_start=678
|
|
48
|
+
_globals['_CHATRESPONSE']._serialized_end=784
|
|
49
|
+
_globals['_CHATSERVICE']._serialized_start=863
|
|
50
|
+
_globals['_CHATSERVICE']._serialized_end=953
|
|
49
51
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from google.protobuf import struct_pb2 as _struct_pb2
|
|
2
2
|
from google.protobuf.internal import containers as _containers
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
4
|
from google.protobuf import descriptor as _descriptor
|
|
4
5
|
from google.protobuf import message as _message
|
|
5
6
|
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
@@ -7,6 +8,13 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
7
8
|
|
|
8
9
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
10
|
|
|
11
|
+
class PlanningMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
12
|
+
__slots__ = ()
|
|
13
|
+
PLANNING_MODE_REACT: _ClassVar[PlanningMode]
|
|
14
|
+
PLANNING_MODE_PLAN_AND_EXECUTE: _ClassVar[PlanningMode]
|
|
15
|
+
PLANNING_MODE_REACT: PlanningMode
|
|
16
|
+
PLANNING_MODE_PLAN_AND_EXECUTE: PlanningMode
|
|
17
|
+
|
|
10
18
|
class ChatMessage(_message.Message):
|
|
11
19
|
__slots__ = ("human", "ai", "tool")
|
|
12
20
|
HUMAN_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -38,12 +46,16 @@ class ToolChatMessage(_message.Message):
|
|
|
38
46
|
def __init__(self, content: _Optional[str] = ..., tool_name: _Optional[str] = ...) -> None: ...
|
|
39
47
|
|
|
40
48
|
class ChatRequest(_message.Message):
|
|
41
|
-
__slots__ = ("agent_name", "messages")
|
|
49
|
+
__slots__ = ("agent_name", "messages", "planning_mode", "require_plan_approval")
|
|
42
50
|
AGENT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
43
51
|
MESSAGES_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
PLANNING_MODE_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
REQUIRE_PLAN_APPROVAL_FIELD_NUMBER: _ClassVar[int]
|
|
44
54
|
agent_name: str
|
|
45
55
|
messages: _containers.RepeatedCompositeFieldContainer[ChatMessage]
|
|
46
|
-
|
|
56
|
+
planning_mode: PlanningMode
|
|
57
|
+
require_plan_approval: bool
|
|
58
|
+
def __init__(self, agent_name: _Optional[str] = ..., messages: _Optional[_Iterable[_Union[ChatMessage, _Mapping]]] = ..., planning_mode: _Optional[_Union[PlanningMode, str]] = ..., require_plan_approval: _Optional[bool] = ...) -> None: ...
|
|
47
59
|
|
|
48
60
|
class ChatResponse(_message.Message):
|
|
49
61
|
__slots__ = ("role", "scope", "content")
|
|
@@ -5,7 +5,7 @@ import grpc
|
|
|
5
5
|
from hostel.protocol.v1 import chat_pb2 as hostel_dot_protocol_dot_v1_dot_chat__pb2
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class ChatServiceStub
|
|
8
|
+
class ChatServiceStub:
|
|
9
9
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
10
10
|
|
|
11
11
|
"""
|
|
@@ -23,7 +23,7 @@ class ChatServiceStub(object):
|
|
|
23
23
|
_registered_method=True)
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class ChatServiceServicer
|
|
26
|
+
class ChatServiceServicer:
|
|
27
27
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
28
28
|
|
|
29
29
|
"""
|
|
@@ -50,7 +50,7 @@ def add_ChatServiceServicer_to_server(servicer, server):
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
# This class is part of an EXPERIMENTAL API.
|
|
53
|
-
class ChatService
|
|
53
|
+
class ChatService:
|
|
54
54
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
55
55
|
|
|
56
56
|
"""
|
|
@@ -5,7 +5,7 @@ import grpc
|
|
|
5
5
|
from hostel.protocol.v1 import component_pb2 as hostel_dot_protocol_dot_v1_dot_component__pb2
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class ComponentServiceStub
|
|
8
|
+
class ComponentServiceStub:
|
|
9
9
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
10
10
|
|
|
11
11
|
"""
|
|
@@ -43,7 +43,7 @@ class ComponentServiceStub(object):
|
|
|
43
43
|
_registered_method=True)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
class ComponentServiceServicer
|
|
46
|
+
class ComponentServiceServicer:
|
|
47
47
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
48
48
|
|
|
49
49
|
"""
|
|
@@ -114,7 +114,7 @@ def add_ComponentServiceServicer_to_server(servicer, server):
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
# This class is part of an EXPERIMENTAL API.
|
|
117
|
-
class ComponentService
|
|
117
|
+
class ComponentService:
|
|
118
118
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
119
119
|
|
|
120
120
|
"""
|
|
@@ -5,7 +5,7 @@ import grpc
|
|
|
5
5
|
from hostel.protocol.v1 import task_pb2 as hostel_dot_protocol_dot_v1_dot_task__pb2
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class TaskServiceStub
|
|
8
|
+
class TaskServiceStub:
|
|
9
9
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
10
10
|
|
|
11
11
|
"""
|
|
@@ -43,7 +43,7 @@ class TaskServiceStub(object):
|
|
|
43
43
|
_registered_method=True)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
class TaskServiceServicer
|
|
46
|
+
class TaskServiceServicer:
|
|
47
47
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
48
48
|
|
|
49
49
|
"""
|
|
@@ -114,7 +114,7 @@ def add_TaskServiceServicer_to_server(servicer, server):
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
# This class is part of an EXPERIMENTAL API.
|
|
117
|
-
class TaskService
|
|
117
|
+
class TaskService:
|
|
118
118
|
"""── Services ────────────────────────────────────────────────────────────────
|
|
119
119
|
|
|
120
120
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hostel_protocol-0.2.2 → hostel_protocol-0.3.0}/hostel_protocol.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|