tinyhumansai/openhuman · error · anyhow::Error
--toolkit is required when --agent is `integrations_agent`…
Error message
--toolkit <slug> is required when --agent is `integrations_agent` (e.g. `--toolkit gmail`). Run `composio list_connection` to see active slugs.
What it means
Fires when `openhuman agent dump-prompt` is invoked with --agent integrations_agent but no --toolkit slug. The integrations agent's prompt is built around a specific Composio toolkit, so a slug is mandatory for this agent id (other agents like orchestrator or welcome do not need one).
Solutions
- Pass a toolkit slug, e.g. `--toolkit gmail`, alongside `--agent integrations_agent`
- Run `openhuman composio list_connection` to see active toolkit slugs
- Use a different agent id (e.g. orchestrator) if no toolkit-specific prompt is needed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/agent_cli.rs:233 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/b78e7770ed1c31c7.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/agent_cli.rs:233
"-h" | "--help" => {
print_dump_prompt_help();
std::process::exit(0);
}
other => return Err(anyhow!("unknown dump-prompt arg: {other}")),
}
let _ = i; // silence unused-warning in the `help` branch
}
Ok(out)
}
fn run_dump_prompt(args: &[String]) -> Result<()> {
let flags = parse_dump_flags(args)?;
let agent = flags.agent.clone().ok_or_else(|| {
anyhow!("--agent <id> is required (e.g. `orchestrator`, `integrations_agent`, `welcome`)")
})?;
if agent == "integrations_agent" && flags.toolkit.is_none() {
return Err(anyhow!(
"--toolkit <slug> is required when --agent is `integrations_agent` \
(e.g. `--toolkit gmail`). Run `composio list_connection` to see active slugs."
));
}
init_quiet_logging(flags.verbose);
log::debug!(
"[agent-cli] run_dump_prompt entry: agent={} toolkit={:?} workspace={:?} model={:?}",
agent,
flags.toolkit,
flags.workspace,
flags.model
);
let options = DumpPromptOptions {
agent_id: agent,
toolkit: flags.toolkit.clone(),View on GitHub (pinned to 7491200858)