Skip to main content

Crate khive_request

Crate khive_request 

Source
Expand description

khive-request — transport-agnostic DSL parser for verb-dispatch requests.

Structs§

ParsedOp
A single parsed operation: tool name plus named argument bag.
ParsedRequest
Result of parsing a request input: a list of ops and their execution mode.

Enums§

ArgValue
An argument value in a ParsedOp: concrete JSON, a $prev path ref, or a nested container.
DslError
Parser error — surfaced as invalid_params at the MCP boundary.
ExecutionMode
Execution mode: Single (one op), Parallel ([...]), or Chain (op | op).

Constants§

MAX_OPS
Hard cap on operations per request.
RESERVED_ENVELOPE_ARGS
Names reserved at the request-envelope level; rejected if they appear inside verb args.

Functions§

parse_request
Parse a request input string into a single op or a batch.
write_keys_for_op_pub
Extract substrate-prefixed write-conflict keys from one op for parallel-batch preflight.