tinyhumansai/openhuman · error

Missing required parameter: model

Error message

Missing required parameter: model

What it means

Argument-validation guard in the Parallel LLM/chat tool's execute: 'model' is absent or not a string (ok_or_else on and_then(as_str)). The schema's required list is [model, messages]. Purely a malformed-tool-call guard — the error goes back to the calling model as a retryable tool error, no API request is made.

Source

Thrown at src/openhuman/search/tools/parallel.rs:533

                    "items": {
                        "type": "object",
                        "properties": {
                            "role": { "type": "string", "enum": ["system", "user", "assistant"] },
                            "content": { "type": "string" }
                        },
                        "required": ["role", "content"]
                    }
                }
            },
            "required": ["model", "messages"]
        })
    }

    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
        let model = args
            .get("model")
            .and_then(|v| v.as_str())
            .ok_or_else(|| anyhow::anyhow!("Missing required parameter: model"))?;
        let messages = args
            .get("messages")
            .and_then(|v| v.as_array())
            .filter(|a| !a.is_empty())
            .ok_or_else(|| anyhow::anyhow!("messages must be a non-empty array"))?;

        tracing::info!(
            "[parallel_chat] model={} messages={}",
            model,
            messages.len()
        );

        let body = json!({ "model": model, "messages": messages });
        match self
            .client
            .post::<ChatResponse>("/agent-integrations/parallel/chat", &body)
            .await
        {

View on GitHub (pinned to 7491200858)

Solutions

  1. Retry including a 'model' string naming one of the Parallel-supported models.
  2. Check available model identifiers documented in the tool schema.
  3. If the model name is dynamic, ensure it is serialized as a string, not an object.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/search/tools/parallel.rs:533 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/2762bb92e1c0ecf3. Report an issue: GitHub.