NousResearch/hermes-agent · error · ValueError
Codex Responses input[{idx}] function_call is missing name.
Error message
Codex Responses input[{idx}] function_call is missing name. What it means
Error "Codex Responses input[{idx}] function_call is missing name." thrown in NousResearch/hermes-agent.
Source
Thrown at agent/codex_responses_adapter.py:738
sanitize_text = (
_neutralize_harmony_tokens
if sanitize_harmony_tokens
else lambda text: text
)
normalized: List[Dict[str, Any]] = []
seen_ids: set = set()
for idx, item in enumerate(raw_items):
if not isinstance(item, dict):
raise ValueError(f"Codex Responses input[{idx}] must be an object.")
item_type = item.get("type")
if item_type == "function_call":
call_id = item.get("call_id")
name = item.get("name")
if not isinstance(call_id, str) or not call_id.strip():
raise ValueError(f"Codex Responses input[{idx}] function_call is missing call_id.")
if not isinstance(name, str) or not name.strip():
raise ValueError(f"Codex Responses input[{idx}] function_call is missing name.")
arguments = item.get("arguments", "{}")
if isinstance(arguments, dict):
arguments = json.dumps(arguments, ensure_ascii=False)
elif not isinstance(arguments, str):
arguments = str(arguments)
arguments = sanitize_text(arguments.strip() or "{}")
normalized.append(
{
"type": "function_call",
"call_id": call_id.strip(),
"name": name.strip(),
"arguments": arguments,
}
)
continue
View on GitHub (pinned to c896c09c42)
Solutions
- Include name on every function_call input item.
- Repair the conversation history entry whose function call lost its name.
When it happens
Trigger: Thrown at agent/codex_responses_adapter.py:738 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of NousResearch/hermes-agent@c896c09c42 (2026-08-14).
Data as JSON: /api/errors/2f307b3582d09251.
Report an issue: GitHub.