tinyhumansai/openhuman · error · anyhow::Error

integrations_agent requires a `toolkit` argument — e.g…

Error message

integrations_agent requires a `toolkit` argument — e.g. `gmail`, `notion`. See `composio list_connection` for the currently-connected toolkits.

What it means

Required-input guard in the agent debug prompt-dump path. When dumping the `integrations_agent` prompt, the composio toolkit must be named via the `toolkit` argument (e.g. `gmail`, `notion`); the error fires when that argument is absent, and the message self-documents by pointing at `composio list_connection` to discover connected toolkits.

Solutions

  1. Pass the toolkit argument, e.g. dump with `toolkit=gmail`.
  2. Run `composio list_connection` to see currently-connected toolkits.
  3. Use the exact toolkit slug (lowercase, e.g. `notion`, not `Notion`).
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/agent/debug/mod.rs:116 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/583676b7a2438185. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/debug/mod.rs:116

/// Render and return the system prompt for a single agent via the
/// real [`Agent::from_config_for_agent`] construction path.
pub async fn dump_agent_prompt(options: DumpPromptOptions) -> Result<DumpedPrompt> {
    let config = load_dump_config(
        options.workspace_dir_override.clone(),
        options.model_override.clone(),
    )
    .await?;

    // Ensure the registry is populated — `from_config_for_agent`
    // errors for any non-orchestrator id when the global registry
    // hasn't been initialised.
    AgentDefinitionRegistry::init_global(&config.workspace_dir)
        .context("initialising AgentDefinitionRegistry for prompt dump")?;

    if options.agent_id == INTEGRATIONS_AGENT_ID {
        let toolkit = options.toolkit.as_deref().ok_or_else(|| {
            anyhow!(
                "integrations_agent requires a `toolkit` argument — e.g. \
                 `gmail`, `notion`. See `composio list_connection` for \
                 the currently-connected toolkits."
            )
        })?;
        render_integrations_agent(&config, toolkit).await
    } else {
        render_via_session(&config, &options.agent_id).await
    }
}

/// Dump every registered agent's system prompt in one shot.
///
/// The synthetic `fork` archetype is skipped (byte-stable replay, no
/// standalone prompt). `integrations_agent` is expanded into one dump
/// per currently-connected Composio toolkit — if the user has gmail +
/// notion connected, `dump_all_agent_prompts` returns an entry for
/// `integrations_agent@gmail` and another for `integrations_agent@notion`.

View on GitHub (pinned to 7491200858)