MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / AgentStreamError

Class AgentStreamError

python/src/cmdop/errors.py:105–109  ·  view source on GitHub ↗

An ``error`` outcome from ``machines.ask`` (machine_offline/timeout/internal).

Source from the content-addressed store, hash-verified

103
104
105def map_core_error(info: pb.ErrorInfo) -> CmdopError:
106 code = error_code_name(info.code)
107 details: Any = None
108 if info.HasField("details_json"):
109 try:
110 details = json.loads(info.details_json)
111 except ValueError:
112 details = info.details_json

Callers 1

_stream_errorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected