{"record":{"id":"0d58cabcf3e38b99","repo":"NousResearch/hermes-agent","slug":"unknown-one-shot-template-name","errorCode":null,"errorMessage":"unknown one-shot template: {name}","messagePattern":"unknown one-shot template: (.+?)","errorType":"exception","errorClass":"KeyError","httpStatus":null,"severity":"error","filePath":"agent/oneshot.py","lineNumber":102,"sourceCode":"    return _COMMIT_INSTRUCTIONS, \"\\n\\n\".join(parts)\n\n\n# Registry of named templates. Add an entry here to give a new surface a\n# consistent, reusable prompt without teaching every caller the prompt text.\nPROMPT_TEMPLATES: Dict[str, PromptTemplate] = {\n    \"commit_message\": _commit_message_template,\n}\n\n\ndef render_template(name: str, variables: Optional[Dict[str, Any]] = None) -> Tuple[str, str]:\n    \"\"\"Resolve a registered template into (instructions, user_input).\n\n    Raises KeyError if the template name is unknown so callers fail loudly\n    instead of silently sending an empty prompt.\n    \"\"\"\n    template = PROMPT_TEMPLATES.get(name)\n    if template is None:\n        raise KeyError(f\"unknown one-shot template: {name}\")\n    return template(variables or {})\n\n\ndef run_oneshot(\n    *,\n    instructions: str = \"\",\n    user_input: str = \"\",\n    template: Optional[str] = None,\n    variables: Optional[Dict[str, Any]] = None,\n    task: str = \"title_generation\",\n    max_tokens: int = 1024,\n    temperature: Optional[float] = 0.3,\n    timeout: float = 60.0,\n    main_runtime: Optional[Dict[str, Any]] = None,\n) -> str:\n    \"\"\"Run a single stateless LLM request and return its text.\n\n    Provide either a registered ``template`` (+ ``variables``) or an explicit","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/oneshot.py#L84-L120","documentation":"Error \"unknown one-shot template: {name}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/oneshot.py:102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the registered one-shot template names.","List available templates and pick an existing one."],"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"}