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, orsource). - 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
providerormessage.provider).