Skip to main content

Module model_from_json

Module model_from_json 

Source
Expand description

Best-effort LLM model id from transcript JSONL lines or hook payloads.

Functionsยง

channel_from_object
Extract channel from a JSON object (OpenClaw origin.channel, channel, or source).
from_line
Parse a single JSONL line and return a model id when present.
from_object
Read model from a JSON object (transcript line or hook body). Tries model, then nested paths used by common agent formats.
from_value
Extract model from a JSON value (e.g. hook payload).
provider_from_object
Extract provider from a JSON object (OpenClaw provider or message.provider).