{"record":{"id":"7bb8a2022904c817","repo":"NousResearch/hermes-agent","slug":"complete-structured-requires-at-least-one-input-bl","errorCode":null,"errorMessage":"complete_structured requires at least one input block","messagePattern":"complete_structured requires at least one input block","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"agent/plugin_llm.py","lineNumber":848,"sourceCode":"        \"\"\"Run a bounded host-owned structured completion.\n\n        ``input`` accepts text and image blocks (see\n        :class:`PluginLlmTextInput` / :class:`PluginLlmImageInput`). When\n        ``json_mode=True`` or ``json_schema`` is provided, the response\n        is parsed and (if a schema is given) validated; the parsed value\n        is returned in :attr:`PluginLlmStructuredResult.parsed`.\n\n        Validation requires the optional ``jsonschema`` package. When it\n        isn't installed, JSON mode still works but schema enforcement is\n        skipped with a debug log.\n\n        ``task`` routes through a plugin-registered auxiliary slot (see\n        :meth:`complete`).\n        \"\"\"\n        if not instructions or not instructions.strip():\n            raise ValueError(\"complete_structured requires non-empty instructions\")\n        if not input:\n            raise ValueError(\"complete_structured requires at least one input block\")\n\n        policy = self._policy_loader(self._plugin_id)\n        eff_task = _check_task(policy, plugin_id=self._plugin_id, requested_task=task)\n        eff_provider, eff_model, eff_agent, eff_profile = _check_overrides(\n            policy,\n            requested_provider=provider,\n            requested_model=model,\n            requested_agent_id=agent_id,\n            requested_profile=profile,\n        )\n\n        messages = _build_structured_messages(\n            instructions=instructions,\n            inputs=list(input),\n            json_mode=json_mode,\n            json_schema=json_schema,\n            schema_name=schema_name,\n            system_prompt=system_prompt,","sourceCodeStart":830,"sourceCodeEnd":866,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/plugin_llm.py#L830-L866","documentation":"Error \"complete_structured requires at least one input block\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/plugin_llm.py:848 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass at least one input block to complete_structured."],"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"}