Skip to main content

Module interaction

Module interaction 

Source
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§

InteractionRequest
A pending interaction request written by the worker.
InteractionResponse
A response written by the dashboard (or lev respond) to answer the worker.

Enums§

ApprovalScope
The scope of an approval decision.
BodyFormat
Format of an optional rich body attached to an interaction request.
InteractionKind
The kind of interaction being requested.

Functions§

make_interaction_id
Generate a simple monotonic ID from stage index + iteration.
response_approved
Returns true if a tool-approval response was granted.
response_as_choice
Resolve a MultipleChoice response to the chosen option string.
response_as_text
Resolve a FreeText response to a string.