Expand description
Plain value types for the worker ↔ dashboard interaction channel.
These are serde data types shared across the engine (leviath-runtime),
the CLI’s file-IPC/stdin transports, and the dashboard. The concrete
transport functions (file IPC, stdin) and backends live in leviath-cli;
only the wire/value types and their pure resolver helpers live here so the
runtime can reference them without depending on the CLI.
Structs§
- Interaction
Request - A pending interaction request written by the worker.
- Interaction
Response - A response written by the dashboard (or
lev respond) to answer the worker.
Enums§
- Approval
Scope - The scope of an approval decision.
- Body
Format - Format of an optional rich body attached to an interaction request.
- Interaction
Kind - The kind of interaction being requested.
Functions§
- make_
interaction_ id - Generate a simple monotonic ID from stage index + iteration.
- response_
approved - Returns
trueif a tool-approval response was granted. - response_
as_ choice - Resolve a
MultipleChoiceresponse to the chosen option string. - response_
as_ text - Resolve a
FreeTextresponse to a string.