crabcode 0.1.6__py3-none-win_amd64.whl
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.
- crabcode-0.1.6.dist-info/METADATA +63 -0
- crabcode-0.1.6.dist-info/RECORD +205 -0
- crabcode-0.1.6.dist-info/WHEEL +4 -0
- crabcode-0.1.6.dist-info/entry_points.txt +2 -0
- crabcode_cli/__init__.py +7 -0
- crabcode_cli/__main__.py +4 -0
- crabcode_cli/_native/crabcode-computer-use-host.exe +0 -0
- crabcode_cli/_native/runtime.json +6 -0
- crabcode_cli/app.py +776 -0
- crabcode_cli/banner.py +39 -0
- crabcode_cli/computer_use.py +286 -0
- crabcode_cli/model_manager.py +649 -0
- crabcode_cli/model_picker.py +168 -0
- crabcode_cli/pipe.py +148 -0
- crabcode_cli/render/__init__.py +0 -0
- crabcode_cli/render/messages.py +19 -0
- crabcode_cli/repl.py +4841 -0
- crabcode_cli/session_picker.py +239 -0
- crabcode_core/__init__.py +7 -0
- crabcode_core/_version.py +3 -0
- crabcode_core/_windows_process.py +68 -0
- crabcode_core/agent_manager.py +1731 -0
- crabcode_core/api/__init__.py +20 -0
- crabcode_core/api/anthropic_adapter.py +648 -0
- crabcode_core/api/azure_adapter.py +69 -0
- crabcode_core/api/base.py +233 -0
- crabcode_core/api/codex_adapter.py +1327 -0
- crabcode_core/api/error_logging.py +132 -0
- crabcode_core/api/gemini_adapter.py +26 -0
- crabcode_core/api/model_info.py +257 -0
- crabcode_core/api/network.py +62 -0
- crabcode_core/api/ollama_adapter.py +27 -0
- crabcode_core/api/openai_adapter.py +323 -0
- crabcode_core/api/registry.py +58 -0
- crabcode_core/command_line.py +18 -0
- crabcode_core/compact/__init__.py +17 -0
- crabcode_core/compact/compact.py +514 -0
- crabcode_core/compact/context_tokens.py +165 -0
- crabcode_core/computer_use_mode.py +38 -0
- crabcode_core/computer_use_observation.py +144 -0
- crabcode_core/config/__init__.py +3 -0
- crabcode_core/config/claudemd.py +61 -0
- crabcode_core/config/manager.py +237 -0
- crabcode_core/config/model_catalog.py +256 -0
- crabcode_core/events.py +4896 -0
- crabcode_core/file_lock.py +81 -0
- crabcode_core/filesystem.py +22 -0
- crabcode_core/goal.py +149 -0
- crabcode_core/hooks/__init__.py +5 -0
- crabcode_core/hooks/manager.py +290 -0
- crabcode_core/image_io.py +111 -0
- crabcode_core/io_worker.py +211 -0
- crabcode_core/logging_utils.py +168 -0
- crabcode_core/lsp/__init__.py +6 -0
- crabcode_core/lsp/client.py +786 -0
- crabcode_core/lsp/diagnostics.py +150 -0
- crabcode_core/lsp/manager.py +583 -0
- crabcode_core/mcp/__init__.py +4 -0
- crabcode_core/mcp/client.py +169 -0
- crabcode_core/mcp/config.py +57 -0
- crabcode_core/path_validation.py +34 -0
- crabcode_core/paths.py +24 -0
- crabcode_core/peer/__init__.py +10 -0
- crabcode_core/peer/runtime.py +518 -0
- crabcode_core/permissions/__init__.py +7 -0
- crabcode_core/permissions/ai_reviewer.py +184 -0
- crabcode_core/permissions/manager.py +187 -0
- crabcode_core/plan/__init__.py +5 -0
- crabcode_core/plan/executor.py +270 -0
- crabcode_core/plan/types.py +169 -0
- crabcode_core/prompts/__init__.py +0 -0
- crabcode_core/prompts/blocks.py +10 -0
- crabcode_core/prompts/context.py +229 -0
- crabcode_core/prompts/library.py +92 -0
- crabcode_core/prompts/profile.py +79 -0
- crabcode_core/prompts/system.py +356 -0
- crabcode_core/prompts/templates.py +104 -0
- crabcode_core/query/__init__.py +0 -0
- crabcode_core/query/computer_use_history.py +83 -0
- crabcode_core/query/loop.py +2446 -0
- crabcode_core/query/retry.py +116 -0
- crabcode_core/schedule/__init__.py +13 -0
- crabcode_core/schedule/manager.py +631 -0
- crabcode_core/schedule/models.py +204 -0
- crabcode_core/schedule/store.py +558 -0
- crabcode_core/schedule/timing.py +287 -0
- crabcode_core/session/__init__.py +12 -0
- crabcode_core/session/export.py +141 -0
- crabcode_core/session/meta_db.py +684 -0
- crabcode_core/session/storage.py +2032 -0
- crabcode_core/session/title_gen.py +52 -0
- crabcode_core/skills/__init__.py +6 -0
- crabcode_core/skills/context.py +23 -0
- crabcode_core/skills/loader.py +214 -0
- crabcode_core/skills/matcher.py +203 -0
- crabcode_core/snapshot/__init__.py +21 -0
- crabcode_core/snapshot/snapshot.py +436 -0
- crabcode_core/snapshot/tracker.py +359 -0
- crabcode_core/subprocess_utils.py +260 -0
- crabcode_core/team/__init__.py +27 -0
- crabcode_core/team/bridge.py +66 -0
- crabcode_core/team/inbox.py +237 -0
- crabcode_core/team/manager.py +1660 -0
- crabcode_core/team/message_bus.py +821 -0
- crabcode_core/team/models.py +191 -0
- crabcode_core/team/recovery.py +192 -0
- crabcode_core/text_io.py +52 -0
- crabcode_core/tools/__init__.py +112 -0
- crabcode_core/tools/_input_helpers.py +39 -0
- crabcode_core/tools/_input_schema.py +130 -0
- crabcode_core/tools/agent.py +413 -0
- crabcode_core/tools/apply_patch.py +587 -0
- crabcode_core/tools/ask_user.py +122 -0
- crabcode_core/tools/bash.py +154 -0
- crabcode_core/tools/browser.py +678 -0
- crabcode_core/tools/checklist.py +241 -0
- crabcode_core/tools/checkpoint.py +78 -0
- crabcode_core/tools/computer_use.py +599 -0
- crabcode_core/tools/diff_utils.py +123 -0
- crabcode_core/tools/file_edit.py +240 -0
- crabcode_core/tools/file_read.py +187 -0
- crabcode_core/tools/file_write.py +154 -0
- crabcode_core/tools/glob.py +123 -0
- crabcode_core/tools/goal.py +134 -0
- crabcode_core/tools/grep.py +247 -0
- crabcode_core/tools/image.py +173 -0
- crabcode_core/tools/image_generate.py +115 -0
- crabcode_core/tools/lint.py +388 -0
- crabcode_core/tools/loading.py +187 -0
- crabcode_core/tools/memory.py +456 -0
- crabcode_core/tools/monitor.py +677 -0
- crabcode_core/tools/peer.py +103 -0
- crabcode_core/tools/revert.py +90 -0
- crabcode_core/tools/schedule.py +683 -0
- crabcode_core/tools/skill.py +108 -0
- crabcode_core/tools/switch_mode.py +213 -0
- crabcode_core/tools/team.py +329 -0
- crabcode_core/tools/tool_search.py +64 -0
- crabcode_core/tools/web_search.py +444 -0
- crabcode_core/turn_details.py +64 -0
- crabcode_core/types/__init__.py +95 -0
- crabcode_core/types/config.py +434 -0
- crabcode_core/types/event.py +334 -0
- crabcode_core/types/message.py +263 -0
- crabcode_core/types/tool.py +208 -0
- crabcode_core/usage.py +289 -0
- crabcode_core/utf8_sanitize.py +29 -0
- crabcode_debugger/__init__.py +5 -0
- crabcode_debugger/adapters.py +332 -0
- crabcode_debugger/dap.py +304 -0
- crabcode_debugger/memory.py +1806 -0
- crabcode_debugger/process.py +707 -0
- crabcode_debugger/runtime.py +58 -0
- crabcode_debugger/sessions.py +387 -0
- crabcode_debugger/tool.py +731 -0
- crabcode_gateway/__init__.py +18 -0
- crabcode_gateway/acp/__init__.py +13 -0
- crabcode_gateway/acp/agent.py +1581 -0
- crabcode_gateway/acp/session.py +114 -0
- crabcode_gateway/acp/transport.py +39 -0
- crabcode_gateway/acp/types.py +90 -0
- crabcode_gateway/adapter.py +30 -0
- crabcode_gateway/auth.py +139 -0
- crabcode_gateway/computer_use.py +364 -0
- crabcode_gateway/document_engine.py +637 -0
- crabcode_gateway/document_worker.py +301 -0
- crabcode_gateway/event_bus.py +655 -0
- crabcode_gateway/grpc/__init__.py +0 -0
- crabcode_gateway/grpc/crabcode_pb2.py +70 -0
- crabcode_gateway/grpc/crabcode_pb2_grpc.py +474 -0
- crabcode_gateway/grpc/proto/crabcode.proto +160 -0
- crabcode_gateway/grpc/server.py +765 -0
- crabcode_gateway/middleware.py +344 -0
- crabcode_gateway/protocol.py +17 -0
- crabcode_gateway/routes/__init__.py +0 -0
- crabcode_gateway/routes/agent.py +392 -0
- crabcode_gateway/routes/auth.py +150 -0
- crabcode_gateway/routes/computer_use.py +101 -0
- crabcode_gateway/routes/config.py +1698 -0
- crabcode_gateway/routes/document.py +1810 -0
- crabcode_gateway/routes/event.py +3801 -0
- crabcode_gateway/routes/git_review.py +232 -0
- crabcode_gateway/routes/health.py +14 -0
- crabcode_gateway/routes/peer.py +78 -0
- crabcode_gateway/routes/permission.py +121 -0
- crabcode_gateway/routes/schedule.py +300 -0
- crabcode_gateway/routes/session.py +1496 -0
- crabcode_gateway/routes/snapshot.py +211 -0
- crabcode_gateway/routes/tasks.py +318 -0
- crabcode_gateway/routes/team.py +392 -0
- crabcode_gateway/routes/usage.py +49 -0
- crabcode_gateway/routes/workspace.py +299 -0
- crabcode_gateway/safe_file.py +63 -0
- crabcode_gateway/schemas.py +1820 -0
- crabcode_gateway/server.py +514 -0
- crabcode_gateway/session_registry.py +36 -0
- crabcode_gateway/task_registry.py +708 -0
- crabcode_gateway/turn_details.py +60 -0
- crabcode_search/__init__.py +11 -0
- crabcode_search/background.py +368 -0
- crabcode_search/chunker.py +517 -0
- crabcode_search/embedder.py +497 -0
- crabcode_search/indexer.py +215 -0
- crabcode_search/store.py +222 -0
- crabcode_search/tool.py +268 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: crabcode.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.0
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x63rabcode.proto\x12\x08\x63rabcode\"\x1b\n\x05\x45mpty\x12\x12\n\nsession_id\x18\x01 \x01(\t\"I\n\x12SendMessageRequest\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x11\n\tmax_turns\x18\x02 \x01(\x05\x12\x12\n\nsession_id\x18\x03 \x01(\t\"&\n\x10SubscribeRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\"\xaa\x01\n\x11SpawnAgentRequest\x12\x0e\n\x06prompt\x18\x01 \x01(\t\x12\x15\n\rsubagent_type\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rmodel_profile\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x08\x63\x61llback\x18\x05 \x01(\x08\x12\x12\n\nsession_id\x18\x06 \x01(\tB\x07\n\x05_nameB\x10\n\x0e_model_profile\"&\n\x12SpawnAgentResponse\x12\x10\n\x08\x61gent_id\x18\x01 \x01(\t\"7\n\x0fGetAgentRequest\x12\x10\n\x08\x61gent_id\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\"\'\n\x11ListAgentsRequest\x12\x12\n\nsession_id\x18\x01 \x01(\t\":\n\x12\x43\x61ncelAgentRequest\x12\x10\n\x08\x61gent_id\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\"!\n\x13\x43\x61ncelAgentResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\"a\n\x10WaitAgentRequest\x12\x11\n\tagent_ids\x18\x01 \x03(\t\x12\x17\n\ntimeout_ms\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\nsession_id\x18\x03 \x01(\tB\r\n\x0b_timeout_ms\"\x8b\x01\n\x15PermissionResponseMsg\x12\x13\n\x0btool_use_id\x18\x01 \x01(\t\x12\x0f\n\x07\x61llowed\x18\x02 \x01(\x08\x12\x14\n\x0c\x61lways_allow\x18\x03 \x01(\x08\x12\x15\n\x08\x61gent_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x12\n\nsession_id\x18\x05 \x01(\tB\x0b\n\t_agent_id\"\x85\x01\n\x11\x43hoiceResponseMsg\x12\x13\n\x0btool_use_id\x18\x01 \x01(\t\x12\x10\n\x08selected\x18\x02 \x03(\t\x12\x11\n\tcancelled\x18\x03 \x01(\x08\x12\x15\n\x08\x61gent_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x12\n\nsession_id\x18\x05 \x01(\tB\x0b\n\t_agent_id\"6\n\x12SwitchModelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\"5\n\x11SwitchModeRequest\x12\x0c\n\x04mode\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\":\n\x12ListModelsResponse\x12$\n\x06models\x18\x01 \x03(\x0b\x32\x14.crabcode.ModelEntry\"/\n\nModelEntry\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"6\n\x13HealthCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"4\n\x0e\x43oreEventProto\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0cpayload_json\x18\x02 \x01(\t\"\xb0\x04\n\x12\x41gentSnapshotProto\x12\x10\n\x08\x61gent_id\x18\x01 \x01(\t\x12\x1c\n\x0fparent_agent_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\r\n\x05title\x18\x03 \x01(\t\x12\x15\n\rsubagent_type\x18\x04 \x01(\t\x12\x0e\n\x06status\x18\x05 \x01(\t\x12\r\n\x05model\x18\x06 \x01(\t\x12\x12\n\ncreated_at\x18\x07 \x01(\t\x12\x36\n\x05usage\x18\x08 \x03(\x0b\x32\'.crabcode.AgentSnapshotProto.UsageEntry\x12\x14\n\x0c\x66inal_result\x18\t \x01(\t\x12\r\n\x05\x65rror\x18\n \x01(\t\x12\x12\n\nsession_id\x18\x0b \x01(\t\x12\x18\n\x0b\x66inished_at\x18\x0c \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x0ftranscript_path\x18\r \x01(\tH\x02\x88\x01\x01\x12\x18\n\x10\x63\x61llback_enabled\x18\x0e \x01(\x08\x12\x16\n\x0e\x63\x61llback_state\x18\x0f \x01(\t\x12 \n\x13\x63\x61llback_message_id\x18\x10 \x01(\tH\x03\x88\x01\x01\x12\x16\n\x0e\x63\x61llback_epoch\x18\x11 \x01(\x05\x1a,\n\nUsageEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x42\x12\n\x10_parent_agent_idB\x0e\n\x0c_finished_atB\x12\n\x10_transcript_pathB\x16\n\x14_callback_message_id\"B\n\x12ListAgentsResponse\x12,\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x1c.crabcode.AgentSnapshotProto2\x8b\x07\n\x0f\x43rabCodeService\x12G\n\x0bSendMessage\x12\x1c.crabcode.SendMessageRequest\x1a\x18.crabcode.CoreEventProto0\x01\x12I\n\x0fSubscribeEvents\x12\x1a.crabcode.SubscribeRequest\x1a\x18.crabcode.CoreEventProto0\x01\x12G\n\nSpawnAgent\x12\x1b.crabcode.SpawnAgentRequest\x1a\x1c.crabcode.SpawnAgentResponse\x12\x43\n\x08GetAgent\x12\x19.crabcode.GetAgentRequest\x1a\x1c.crabcode.AgentSnapshotProto\x12G\n\nListAgents\x12\x1b.crabcode.ListAgentsRequest\x1a\x1c.crabcode.ListAgentsResponse\x12J\n\x0b\x43\x61ncelAgent\x12\x1c.crabcode.CancelAgentRequest\x1a\x1d.crabcode.CancelAgentResponse\x12\x45\n\tWaitAgent\x12\x1a.crabcode.WaitAgentRequest\x1a\x1c.crabcode.AgentSnapshotProto\x12\x45\n\x11RespondPermission\x12\x1f.crabcode.PermissionResponseMsg\x1a\x0f.crabcode.Empty\x12=\n\rRespondChoice\x12\x1b.crabcode.ChoiceResponseMsg\x1a\x0f.crabcode.Empty\x12;\n\nListModels\x12\x0f.crabcode.Empty\x1a\x1c.crabcode.ListModelsResponse\x12<\n\x0bSwitchModel\x12\x1c.crabcode.SwitchModelRequest\x1a\x0f.crabcode.Empty\x12:\n\nSwitchMode\x12\x1b.crabcode.SwitchModeRequest\x1a\x0f.crabcode.Empty\x12=\n\x0bHealthCheck\x12\x0f.crabcode.Empty\x1a\x1d.crabcode.HealthCheckResponseb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'crabcode_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
_globals['_AGENTSNAPSHOTPROTO_USAGEENTRY']._options = None
|
|
25
|
+
_globals['_AGENTSNAPSHOTPROTO_USAGEENTRY']._serialized_options = b'8\001'
|
|
26
|
+
_globals['_EMPTY']._serialized_start=28
|
|
27
|
+
_globals['_EMPTY']._serialized_end=55
|
|
28
|
+
_globals['_SENDMESSAGEREQUEST']._serialized_start=57
|
|
29
|
+
_globals['_SENDMESSAGEREQUEST']._serialized_end=130
|
|
30
|
+
_globals['_SUBSCRIBEREQUEST']._serialized_start=132
|
|
31
|
+
_globals['_SUBSCRIBEREQUEST']._serialized_end=170
|
|
32
|
+
_globals['_SPAWNAGENTREQUEST']._serialized_start=173
|
|
33
|
+
_globals['_SPAWNAGENTREQUEST']._serialized_end=343
|
|
34
|
+
_globals['_SPAWNAGENTRESPONSE']._serialized_start=345
|
|
35
|
+
_globals['_SPAWNAGENTRESPONSE']._serialized_end=383
|
|
36
|
+
_globals['_GETAGENTREQUEST']._serialized_start=385
|
|
37
|
+
_globals['_GETAGENTREQUEST']._serialized_end=440
|
|
38
|
+
_globals['_LISTAGENTSREQUEST']._serialized_start=442
|
|
39
|
+
_globals['_LISTAGENTSREQUEST']._serialized_end=481
|
|
40
|
+
_globals['_CANCELAGENTREQUEST']._serialized_start=483
|
|
41
|
+
_globals['_CANCELAGENTREQUEST']._serialized_end=541
|
|
42
|
+
_globals['_CANCELAGENTRESPONSE']._serialized_start=543
|
|
43
|
+
_globals['_CANCELAGENTRESPONSE']._serialized_end=576
|
|
44
|
+
_globals['_WAITAGENTREQUEST']._serialized_start=578
|
|
45
|
+
_globals['_WAITAGENTREQUEST']._serialized_end=675
|
|
46
|
+
_globals['_PERMISSIONRESPONSEMSG']._serialized_start=678
|
|
47
|
+
_globals['_PERMISSIONRESPONSEMSG']._serialized_end=817
|
|
48
|
+
_globals['_CHOICERESPONSEMSG']._serialized_start=820
|
|
49
|
+
_globals['_CHOICERESPONSEMSG']._serialized_end=953
|
|
50
|
+
_globals['_SWITCHMODELREQUEST']._serialized_start=955
|
|
51
|
+
_globals['_SWITCHMODELREQUEST']._serialized_end=1009
|
|
52
|
+
_globals['_SWITCHMODEREQUEST']._serialized_start=1011
|
|
53
|
+
_globals['_SWITCHMODEREQUEST']._serialized_end=1064
|
|
54
|
+
_globals['_LISTMODELSRESPONSE']._serialized_start=1066
|
|
55
|
+
_globals['_LISTMODELSRESPONSE']._serialized_end=1124
|
|
56
|
+
_globals['_MODELENTRY']._serialized_start=1126
|
|
57
|
+
_globals['_MODELENTRY']._serialized_end=1173
|
|
58
|
+
_globals['_HEALTHCHECKRESPONSE']._serialized_start=1175
|
|
59
|
+
_globals['_HEALTHCHECKRESPONSE']._serialized_end=1229
|
|
60
|
+
_globals['_COREEVENTPROTO']._serialized_start=1231
|
|
61
|
+
_globals['_COREEVENTPROTO']._serialized_end=1283
|
|
62
|
+
_globals['_AGENTSNAPSHOTPROTO']._serialized_start=1286
|
|
63
|
+
_globals['_AGENTSNAPSHOTPROTO']._serialized_end=1846
|
|
64
|
+
_globals['_AGENTSNAPSHOTPROTO_USAGEENTRY']._serialized_start=1722
|
|
65
|
+
_globals['_AGENTSNAPSHOTPROTO_USAGEENTRY']._serialized_end=1766
|
|
66
|
+
_globals['_LISTAGENTSRESPONSE']._serialized_start=1848
|
|
67
|
+
_globals['_LISTAGENTSRESPONSE']._serialized_end=1914
|
|
68
|
+
_globals['_CRABCODESERVICE']._serialized_start=1917
|
|
69
|
+
_globals['_CRABCODESERVICE']._serialized_end=2824
|
|
70
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from . import crabcode_pb2 as crabcode__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CrabCodeServiceStub(object):
|
|
9
|
+
"""── Service ─────────────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, channel):
|
|
14
|
+
"""Constructor.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
channel: A grpc.Channel.
|
|
18
|
+
"""
|
|
19
|
+
self.SendMessage = channel.unary_stream(
|
|
20
|
+
'/crabcode.CrabCodeService/SendMessage',
|
|
21
|
+
request_serializer=crabcode__pb2.SendMessageRequest.SerializeToString,
|
|
22
|
+
response_deserializer=crabcode__pb2.CoreEventProto.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.SubscribeEvents = channel.unary_stream(
|
|
25
|
+
'/crabcode.CrabCodeService/SubscribeEvents',
|
|
26
|
+
request_serializer=crabcode__pb2.SubscribeRequest.SerializeToString,
|
|
27
|
+
response_deserializer=crabcode__pb2.CoreEventProto.FromString,
|
|
28
|
+
)
|
|
29
|
+
self.SpawnAgent = channel.unary_unary(
|
|
30
|
+
'/crabcode.CrabCodeService/SpawnAgent',
|
|
31
|
+
request_serializer=crabcode__pb2.SpawnAgentRequest.SerializeToString,
|
|
32
|
+
response_deserializer=crabcode__pb2.SpawnAgentResponse.FromString,
|
|
33
|
+
)
|
|
34
|
+
self.GetAgent = channel.unary_unary(
|
|
35
|
+
'/crabcode.CrabCodeService/GetAgent',
|
|
36
|
+
request_serializer=crabcode__pb2.GetAgentRequest.SerializeToString,
|
|
37
|
+
response_deserializer=crabcode__pb2.AgentSnapshotProto.FromString,
|
|
38
|
+
)
|
|
39
|
+
self.ListAgents = channel.unary_unary(
|
|
40
|
+
'/crabcode.CrabCodeService/ListAgents',
|
|
41
|
+
request_serializer=crabcode__pb2.ListAgentsRequest.SerializeToString,
|
|
42
|
+
response_deserializer=crabcode__pb2.ListAgentsResponse.FromString,
|
|
43
|
+
)
|
|
44
|
+
self.CancelAgent = channel.unary_unary(
|
|
45
|
+
'/crabcode.CrabCodeService/CancelAgent',
|
|
46
|
+
request_serializer=crabcode__pb2.CancelAgentRequest.SerializeToString,
|
|
47
|
+
response_deserializer=crabcode__pb2.CancelAgentResponse.FromString,
|
|
48
|
+
)
|
|
49
|
+
self.WaitAgent = channel.unary_unary(
|
|
50
|
+
'/crabcode.CrabCodeService/WaitAgent',
|
|
51
|
+
request_serializer=crabcode__pb2.WaitAgentRequest.SerializeToString,
|
|
52
|
+
response_deserializer=crabcode__pb2.AgentSnapshotProto.FromString,
|
|
53
|
+
)
|
|
54
|
+
self.RespondPermission = channel.unary_unary(
|
|
55
|
+
'/crabcode.CrabCodeService/RespondPermission',
|
|
56
|
+
request_serializer=crabcode__pb2.PermissionResponseMsg.SerializeToString,
|
|
57
|
+
response_deserializer=crabcode__pb2.Empty.FromString,
|
|
58
|
+
)
|
|
59
|
+
self.RespondChoice = channel.unary_unary(
|
|
60
|
+
'/crabcode.CrabCodeService/RespondChoice',
|
|
61
|
+
request_serializer=crabcode__pb2.ChoiceResponseMsg.SerializeToString,
|
|
62
|
+
response_deserializer=crabcode__pb2.Empty.FromString,
|
|
63
|
+
)
|
|
64
|
+
self.ListModels = channel.unary_unary(
|
|
65
|
+
'/crabcode.CrabCodeService/ListModels',
|
|
66
|
+
request_serializer=crabcode__pb2.Empty.SerializeToString,
|
|
67
|
+
response_deserializer=crabcode__pb2.ListModelsResponse.FromString,
|
|
68
|
+
)
|
|
69
|
+
self.SwitchModel = channel.unary_unary(
|
|
70
|
+
'/crabcode.CrabCodeService/SwitchModel',
|
|
71
|
+
request_serializer=crabcode__pb2.SwitchModelRequest.SerializeToString,
|
|
72
|
+
response_deserializer=crabcode__pb2.Empty.FromString,
|
|
73
|
+
)
|
|
74
|
+
self.SwitchMode = channel.unary_unary(
|
|
75
|
+
'/crabcode.CrabCodeService/SwitchMode',
|
|
76
|
+
request_serializer=crabcode__pb2.SwitchModeRequest.SerializeToString,
|
|
77
|
+
response_deserializer=crabcode__pb2.Empty.FromString,
|
|
78
|
+
)
|
|
79
|
+
self.HealthCheck = channel.unary_unary(
|
|
80
|
+
'/crabcode.CrabCodeService/HealthCheck',
|
|
81
|
+
request_serializer=crabcode__pb2.Empty.SerializeToString,
|
|
82
|
+
response_deserializer=crabcode__pb2.HealthCheckResponse.FromString,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class CrabCodeServiceServicer(object):
|
|
87
|
+
"""── Service ─────────────────────────────────────────────────────
|
|
88
|
+
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
def SendMessage(self, request, context):
|
|
92
|
+
"""Streaming conversation
|
|
93
|
+
"""
|
|
94
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
95
|
+
context.set_details('Method not implemented!')
|
|
96
|
+
raise NotImplementedError('Method not implemented!')
|
|
97
|
+
|
|
98
|
+
def SubscribeEvents(self, request, context):
|
|
99
|
+
"""Subscribe to all events for a session
|
|
100
|
+
"""
|
|
101
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
102
|
+
context.set_details('Method not implemented!')
|
|
103
|
+
raise NotImplementedError('Method not implemented!')
|
|
104
|
+
|
|
105
|
+
def SpawnAgent(self, request, context):
|
|
106
|
+
"""Agent management
|
|
107
|
+
"""
|
|
108
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
109
|
+
context.set_details('Method not implemented!')
|
|
110
|
+
raise NotImplementedError('Method not implemented!')
|
|
111
|
+
|
|
112
|
+
def GetAgent(self, request, context):
|
|
113
|
+
"""Missing associated documentation comment in .proto file."""
|
|
114
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
115
|
+
context.set_details('Method not implemented!')
|
|
116
|
+
raise NotImplementedError('Method not implemented!')
|
|
117
|
+
|
|
118
|
+
def ListAgents(self, request, context):
|
|
119
|
+
"""Missing associated documentation comment in .proto file."""
|
|
120
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
121
|
+
context.set_details('Method not implemented!')
|
|
122
|
+
raise NotImplementedError('Method not implemented!')
|
|
123
|
+
|
|
124
|
+
def CancelAgent(self, request, context):
|
|
125
|
+
"""Missing associated documentation comment in .proto file."""
|
|
126
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
127
|
+
context.set_details('Method not implemented!')
|
|
128
|
+
raise NotImplementedError('Method not implemented!')
|
|
129
|
+
|
|
130
|
+
def WaitAgent(self, request, context):
|
|
131
|
+
"""Missing associated documentation comment in .proto file."""
|
|
132
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
133
|
+
context.set_details('Method not implemented!')
|
|
134
|
+
raise NotImplementedError('Method not implemented!')
|
|
135
|
+
|
|
136
|
+
def RespondPermission(self, request, context):
|
|
137
|
+
"""Permission & choice
|
|
138
|
+
"""
|
|
139
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
140
|
+
context.set_details('Method not implemented!')
|
|
141
|
+
raise NotImplementedError('Method not implemented!')
|
|
142
|
+
|
|
143
|
+
def RespondChoice(self, request, context):
|
|
144
|
+
"""Missing associated documentation comment in .proto file."""
|
|
145
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
146
|
+
context.set_details('Method not implemented!')
|
|
147
|
+
raise NotImplementedError('Method not implemented!')
|
|
148
|
+
|
|
149
|
+
def ListModels(self, request, context):
|
|
150
|
+
"""Configuration
|
|
151
|
+
"""
|
|
152
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
153
|
+
context.set_details('Method not implemented!')
|
|
154
|
+
raise NotImplementedError('Method not implemented!')
|
|
155
|
+
|
|
156
|
+
def SwitchModel(self, request, context):
|
|
157
|
+
"""Missing associated documentation comment in .proto file."""
|
|
158
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
159
|
+
context.set_details('Method not implemented!')
|
|
160
|
+
raise NotImplementedError('Method not implemented!')
|
|
161
|
+
|
|
162
|
+
def SwitchMode(self, request, context):
|
|
163
|
+
"""Missing associated documentation comment in .proto file."""
|
|
164
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
165
|
+
context.set_details('Method not implemented!')
|
|
166
|
+
raise NotImplementedError('Method not implemented!')
|
|
167
|
+
|
|
168
|
+
def HealthCheck(self, request, context):
|
|
169
|
+
"""Health
|
|
170
|
+
"""
|
|
171
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
172
|
+
context.set_details('Method not implemented!')
|
|
173
|
+
raise NotImplementedError('Method not implemented!')
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def add_CrabCodeServiceServicer_to_server(servicer, server):
|
|
177
|
+
rpc_method_handlers = {
|
|
178
|
+
'SendMessage': grpc.unary_stream_rpc_method_handler(
|
|
179
|
+
servicer.SendMessage,
|
|
180
|
+
request_deserializer=crabcode__pb2.SendMessageRequest.FromString,
|
|
181
|
+
response_serializer=crabcode__pb2.CoreEventProto.SerializeToString,
|
|
182
|
+
),
|
|
183
|
+
'SubscribeEvents': grpc.unary_stream_rpc_method_handler(
|
|
184
|
+
servicer.SubscribeEvents,
|
|
185
|
+
request_deserializer=crabcode__pb2.SubscribeRequest.FromString,
|
|
186
|
+
response_serializer=crabcode__pb2.CoreEventProto.SerializeToString,
|
|
187
|
+
),
|
|
188
|
+
'SpawnAgent': grpc.unary_unary_rpc_method_handler(
|
|
189
|
+
servicer.SpawnAgent,
|
|
190
|
+
request_deserializer=crabcode__pb2.SpawnAgentRequest.FromString,
|
|
191
|
+
response_serializer=crabcode__pb2.SpawnAgentResponse.SerializeToString,
|
|
192
|
+
),
|
|
193
|
+
'GetAgent': grpc.unary_unary_rpc_method_handler(
|
|
194
|
+
servicer.GetAgent,
|
|
195
|
+
request_deserializer=crabcode__pb2.GetAgentRequest.FromString,
|
|
196
|
+
response_serializer=crabcode__pb2.AgentSnapshotProto.SerializeToString,
|
|
197
|
+
),
|
|
198
|
+
'ListAgents': grpc.unary_unary_rpc_method_handler(
|
|
199
|
+
servicer.ListAgents,
|
|
200
|
+
request_deserializer=crabcode__pb2.ListAgentsRequest.FromString,
|
|
201
|
+
response_serializer=crabcode__pb2.ListAgentsResponse.SerializeToString,
|
|
202
|
+
),
|
|
203
|
+
'CancelAgent': grpc.unary_unary_rpc_method_handler(
|
|
204
|
+
servicer.CancelAgent,
|
|
205
|
+
request_deserializer=crabcode__pb2.CancelAgentRequest.FromString,
|
|
206
|
+
response_serializer=crabcode__pb2.CancelAgentResponse.SerializeToString,
|
|
207
|
+
),
|
|
208
|
+
'WaitAgent': grpc.unary_unary_rpc_method_handler(
|
|
209
|
+
servicer.WaitAgent,
|
|
210
|
+
request_deserializer=crabcode__pb2.WaitAgentRequest.FromString,
|
|
211
|
+
response_serializer=crabcode__pb2.AgentSnapshotProto.SerializeToString,
|
|
212
|
+
),
|
|
213
|
+
'RespondPermission': grpc.unary_unary_rpc_method_handler(
|
|
214
|
+
servicer.RespondPermission,
|
|
215
|
+
request_deserializer=crabcode__pb2.PermissionResponseMsg.FromString,
|
|
216
|
+
response_serializer=crabcode__pb2.Empty.SerializeToString,
|
|
217
|
+
),
|
|
218
|
+
'RespondChoice': grpc.unary_unary_rpc_method_handler(
|
|
219
|
+
servicer.RespondChoice,
|
|
220
|
+
request_deserializer=crabcode__pb2.ChoiceResponseMsg.FromString,
|
|
221
|
+
response_serializer=crabcode__pb2.Empty.SerializeToString,
|
|
222
|
+
),
|
|
223
|
+
'ListModels': grpc.unary_unary_rpc_method_handler(
|
|
224
|
+
servicer.ListModels,
|
|
225
|
+
request_deserializer=crabcode__pb2.Empty.FromString,
|
|
226
|
+
response_serializer=crabcode__pb2.ListModelsResponse.SerializeToString,
|
|
227
|
+
),
|
|
228
|
+
'SwitchModel': grpc.unary_unary_rpc_method_handler(
|
|
229
|
+
servicer.SwitchModel,
|
|
230
|
+
request_deserializer=crabcode__pb2.SwitchModelRequest.FromString,
|
|
231
|
+
response_serializer=crabcode__pb2.Empty.SerializeToString,
|
|
232
|
+
),
|
|
233
|
+
'SwitchMode': grpc.unary_unary_rpc_method_handler(
|
|
234
|
+
servicer.SwitchMode,
|
|
235
|
+
request_deserializer=crabcode__pb2.SwitchModeRequest.FromString,
|
|
236
|
+
response_serializer=crabcode__pb2.Empty.SerializeToString,
|
|
237
|
+
),
|
|
238
|
+
'HealthCheck': grpc.unary_unary_rpc_method_handler(
|
|
239
|
+
servicer.HealthCheck,
|
|
240
|
+
request_deserializer=crabcode__pb2.Empty.FromString,
|
|
241
|
+
response_serializer=crabcode__pb2.HealthCheckResponse.SerializeToString,
|
|
242
|
+
),
|
|
243
|
+
}
|
|
244
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
245
|
+
'crabcode.CrabCodeService', rpc_method_handlers)
|
|
246
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
# This class is part of an EXPERIMENTAL API.
|
|
250
|
+
class CrabCodeService(object):
|
|
251
|
+
"""── Service ─────────────────────────────────────────────────────
|
|
252
|
+
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
@staticmethod
|
|
256
|
+
def SendMessage(request,
|
|
257
|
+
target,
|
|
258
|
+
options=(),
|
|
259
|
+
channel_credentials=None,
|
|
260
|
+
call_credentials=None,
|
|
261
|
+
insecure=False,
|
|
262
|
+
compression=None,
|
|
263
|
+
wait_for_ready=None,
|
|
264
|
+
timeout=None,
|
|
265
|
+
metadata=None):
|
|
266
|
+
return grpc.experimental.unary_stream(request, target, '/crabcode.CrabCodeService/SendMessage',
|
|
267
|
+
crabcode__pb2.SendMessageRequest.SerializeToString,
|
|
268
|
+
crabcode__pb2.CoreEventProto.FromString,
|
|
269
|
+
options, channel_credentials,
|
|
270
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
271
|
+
|
|
272
|
+
@staticmethod
|
|
273
|
+
def SubscribeEvents(request,
|
|
274
|
+
target,
|
|
275
|
+
options=(),
|
|
276
|
+
channel_credentials=None,
|
|
277
|
+
call_credentials=None,
|
|
278
|
+
insecure=False,
|
|
279
|
+
compression=None,
|
|
280
|
+
wait_for_ready=None,
|
|
281
|
+
timeout=None,
|
|
282
|
+
metadata=None):
|
|
283
|
+
return grpc.experimental.unary_stream(request, target, '/crabcode.CrabCodeService/SubscribeEvents',
|
|
284
|
+
crabcode__pb2.SubscribeRequest.SerializeToString,
|
|
285
|
+
crabcode__pb2.CoreEventProto.FromString,
|
|
286
|
+
options, channel_credentials,
|
|
287
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
288
|
+
|
|
289
|
+
@staticmethod
|
|
290
|
+
def SpawnAgent(request,
|
|
291
|
+
target,
|
|
292
|
+
options=(),
|
|
293
|
+
channel_credentials=None,
|
|
294
|
+
call_credentials=None,
|
|
295
|
+
insecure=False,
|
|
296
|
+
compression=None,
|
|
297
|
+
wait_for_ready=None,
|
|
298
|
+
timeout=None,
|
|
299
|
+
metadata=None):
|
|
300
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/SpawnAgent',
|
|
301
|
+
crabcode__pb2.SpawnAgentRequest.SerializeToString,
|
|
302
|
+
crabcode__pb2.SpawnAgentResponse.FromString,
|
|
303
|
+
options, channel_credentials,
|
|
304
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
305
|
+
|
|
306
|
+
@staticmethod
|
|
307
|
+
def GetAgent(request,
|
|
308
|
+
target,
|
|
309
|
+
options=(),
|
|
310
|
+
channel_credentials=None,
|
|
311
|
+
call_credentials=None,
|
|
312
|
+
insecure=False,
|
|
313
|
+
compression=None,
|
|
314
|
+
wait_for_ready=None,
|
|
315
|
+
timeout=None,
|
|
316
|
+
metadata=None):
|
|
317
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/GetAgent',
|
|
318
|
+
crabcode__pb2.GetAgentRequest.SerializeToString,
|
|
319
|
+
crabcode__pb2.AgentSnapshotProto.FromString,
|
|
320
|
+
options, channel_credentials,
|
|
321
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
322
|
+
|
|
323
|
+
@staticmethod
|
|
324
|
+
def ListAgents(request,
|
|
325
|
+
target,
|
|
326
|
+
options=(),
|
|
327
|
+
channel_credentials=None,
|
|
328
|
+
call_credentials=None,
|
|
329
|
+
insecure=False,
|
|
330
|
+
compression=None,
|
|
331
|
+
wait_for_ready=None,
|
|
332
|
+
timeout=None,
|
|
333
|
+
metadata=None):
|
|
334
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/ListAgents',
|
|
335
|
+
crabcode__pb2.ListAgentsRequest.SerializeToString,
|
|
336
|
+
crabcode__pb2.ListAgentsResponse.FromString,
|
|
337
|
+
options, channel_credentials,
|
|
338
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
339
|
+
|
|
340
|
+
@staticmethod
|
|
341
|
+
def CancelAgent(request,
|
|
342
|
+
target,
|
|
343
|
+
options=(),
|
|
344
|
+
channel_credentials=None,
|
|
345
|
+
call_credentials=None,
|
|
346
|
+
insecure=False,
|
|
347
|
+
compression=None,
|
|
348
|
+
wait_for_ready=None,
|
|
349
|
+
timeout=None,
|
|
350
|
+
metadata=None):
|
|
351
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/CancelAgent',
|
|
352
|
+
crabcode__pb2.CancelAgentRequest.SerializeToString,
|
|
353
|
+
crabcode__pb2.CancelAgentResponse.FromString,
|
|
354
|
+
options, channel_credentials,
|
|
355
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
356
|
+
|
|
357
|
+
@staticmethod
|
|
358
|
+
def WaitAgent(request,
|
|
359
|
+
target,
|
|
360
|
+
options=(),
|
|
361
|
+
channel_credentials=None,
|
|
362
|
+
call_credentials=None,
|
|
363
|
+
insecure=False,
|
|
364
|
+
compression=None,
|
|
365
|
+
wait_for_ready=None,
|
|
366
|
+
timeout=None,
|
|
367
|
+
metadata=None):
|
|
368
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/WaitAgent',
|
|
369
|
+
crabcode__pb2.WaitAgentRequest.SerializeToString,
|
|
370
|
+
crabcode__pb2.AgentSnapshotProto.FromString,
|
|
371
|
+
options, channel_credentials,
|
|
372
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
373
|
+
|
|
374
|
+
@staticmethod
|
|
375
|
+
def RespondPermission(request,
|
|
376
|
+
target,
|
|
377
|
+
options=(),
|
|
378
|
+
channel_credentials=None,
|
|
379
|
+
call_credentials=None,
|
|
380
|
+
insecure=False,
|
|
381
|
+
compression=None,
|
|
382
|
+
wait_for_ready=None,
|
|
383
|
+
timeout=None,
|
|
384
|
+
metadata=None):
|
|
385
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/RespondPermission',
|
|
386
|
+
crabcode__pb2.PermissionResponseMsg.SerializeToString,
|
|
387
|
+
crabcode__pb2.Empty.FromString,
|
|
388
|
+
options, channel_credentials,
|
|
389
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
390
|
+
|
|
391
|
+
@staticmethod
|
|
392
|
+
def RespondChoice(request,
|
|
393
|
+
target,
|
|
394
|
+
options=(),
|
|
395
|
+
channel_credentials=None,
|
|
396
|
+
call_credentials=None,
|
|
397
|
+
insecure=False,
|
|
398
|
+
compression=None,
|
|
399
|
+
wait_for_ready=None,
|
|
400
|
+
timeout=None,
|
|
401
|
+
metadata=None):
|
|
402
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/RespondChoice',
|
|
403
|
+
crabcode__pb2.ChoiceResponseMsg.SerializeToString,
|
|
404
|
+
crabcode__pb2.Empty.FromString,
|
|
405
|
+
options, channel_credentials,
|
|
406
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
407
|
+
|
|
408
|
+
@staticmethod
|
|
409
|
+
def ListModels(request,
|
|
410
|
+
target,
|
|
411
|
+
options=(),
|
|
412
|
+
channel_credentials=None,
|
|
413
|
+
call_credentials=None,
|
|
414
|
+
insecure=False,
|
|
415
|
+
compression=None,
|
|
416
|
+
wait_for_ready=None,
|
|
417
|
+
timeout=None,
|
|
418
|
+
metadata=None):
|
|
419
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/ListModels',
|
|
420
|
+
crabcode__pb2.Empty.SerializeToString,
|
|
421
|
+
crabcode__pb2.ListModelsResponse.FromString,
|
|
422
|
+
options, channel_credentials,
|
|
423
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
424
|
+
|
|
425
|
+
@staticmethod
|
|
426
|
+
def SwitchModel(request,
|
|
427
|
+
target,
|
|
428
|
+
options=(),
|
|
429
|
+
channel_credentials=None,
|
|
430
|
+
call_credentials=None,
|
|
431
|
+
insecure=False,
|
|
432
|
+
compression=None,
|
|
433
|
+
wait_for_ready=None,
|
|
434
|
+
timeout=None,
|
|
435
|
+
metadata=None):
|
|
436
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/SwitchModel',
|
|
437
|
+
crabcode__pb2.SwitchModelRequest.SerializeToString,
|
|
438
|
+
crabcode__pb2.Empty.FromString,
|
|
439
|
+
options, channel_credentials,
|
|
440
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
441
|
+
|
|
442
|
+
@staticmethod
|
|
443
|
+
def SwitchMode(request,
|
|
444
|
+
target,
|
|
445
|
+
options=(),
|
|
446
|
+
channel_credentials=None,
|
|
447
|
+
call_credentials=None,
|
|
448
|
+
insecure=False,
|
|
449
|
+
compression=None,
|
|
450
|
+
wait_for_ready=None,
|
|
451
|
+
timeout=None,
|
|
452
|
+
metadata=None):
|
|
453
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/SwitchMode',
|
|
454
|
+
crabcode__pb2.SwitchModeRequest.SerializeToString,
|
|
455
|
+
crabcode__pb2.Empty.FromString,
|
|
456
|
+
options, channel_credentials,
|
|
457
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
458
|
+
|
|
459
|
+
@staticmethod
|
|
460
|
+
def HealthCheck(request,
|
|
461
|
+
target,
|
|
462
|
+
options=(),
|
|
463
|
+
channel_credentials=None,
|
|
464
|
+
call_credentials=None,
|
|
465
|
+
insecure=False,
|
|
466
|
+
compression=None,
|
|
467
|
+
wait_for_ready=None,
|
|
468
|
+
timeout=None,
|
|
469
|
+
metadata=None):
|
|
470
|
+
return grpc.experimental.unary_unary(request, target, '/crabcode.CrabCodeService/HealthCheck',
|
|
471
|
+
crabcode__pb2.Empty.SerializeToString,
|
|
472
|
+
crabcode__pb2.HealthCheckResponse.FromString,
|
|
473
|
+
options, channel_credentials,
|
|
474
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|