LemonCliRunners. KimiSchema
(lemon_cli_runners v0.1.0)
View Source
Kimi CLI JSONL event schema definitions.
This module defines the event shape emitted by kimi --print --output-format stream-json.
The output is newline-delimited JSON where each line wraps a single message.
Summary
Functions
Decode a JSONL line into a Kimi schema event.
Types
@type stream_event() :: LemonCliRunners.KimiSchema.StreamMessage.t() | LemonCliRunners.KimiSchema.ErrorMessage.t()
Functions
@spec decode_event(binary()) :: {:ok, stream_event()} | {:error, term()}
Decode a JSONL line into a Kimi schema event.
Returns {:ok, event} or {:error, reason}.