{"record":{"id":"0c617bf2afcd8b17","repo":"NousResearch/hermes-agent","slug":"unknown-input-block-type-kind-r","errorCode":null,"errorMessage":"Unknown input block type: {kind!r}","messagePattern":"Unknown input block type: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"agent/plugin_llm.py","lineNumber":481,"sourceCode":"        return d\n    if isinstance(block, dict):\n        kind = block.get(\"type\")\n        if kind == \"text\":\n            text = block.get(\"text\")\n            if not isinstance(text, str):\n                raise ValueError(\"text input block requires 'text' string\")\n            return {\"type\": \"text\", \"text\": text}\n        if kind == \"image\":\n            if \"data\" not in block and not block.get(\"url\"):\n                raise ValueError(\"image input block requires 'data' bytes or 'url'\")\n            return {\n                \"type\": \"image\",\n                \"data\": block.get(\"data\"),\n                \"url\": block.get(\"url\"),\n                \"mime_type\": block.get(\"mime_type\") or \"image/png\",\n                \"file_name\": block.get(\"file_name\") or \"\",\n            }\n        raise ValueError(f\"Unknown input block type: {kind!r}\")\n    raise ValueError(f\"Unsupported input block: {type(block).__name__}\")\n\n\ndef _build_structured_messages(\n    *,\n    instructions: str,\n    inputs: Sequence[PluginLlmInput],\n    json_mode: bool,\n    json_schema: Optional[Any],\n    schema_name: Optional[str],\n    system_prompt: Optional[str],\n) -> List[Dict[str, Any]]:\n    \"\"\"Build the OpenAI-style messages list for a structured call.\n\n    The instructions become the first text part of the user message,\n    followed by an optional ``Schema name: <name>`` hint and an optional\n    JSON-only directive when JSON output is requested. Image inputs are\n    encoded as ``image_url`` parts.","sourceCodeStart":463,"sourceCodeEnd":499,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/plugin_llm.py#L463-L499","documentation":"Error \"Unknown input block type: {kind!r}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/plugin_llm.py:481 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported input block type (text or image).","Fix the plugin code that emitted the unknown block kind."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}