Skip to content

[bot] Instrument @inngest/agent-kit (19,608 weekly downloads) #2396

Description

@braintrust-bot

<!-- library-gap-audit: inngest-agent-kit -->

Summary

@inngest/agent-kit is Inngest's TypeScript framework for building and orchestrating single- and multi-agent AI systems, with deterministic/state-based routing, tool execution (including MCP tools), and provider adapters for OpenAI, Anthropic, Gemini, and other OpenAI-compatible models. This repo has zero instrumentation for this library — no channels, no wrapper, no auto-instrumentation config, and no e2e scenario reference it anywhere.

What's missing

AgentKit's core execution surfaces are entirely unhooked:

  • createAgent({name, system, model, tools}) — defines a single agent (a model + tool set).
  • createNetwork({agents, defaultModel, router}) — composes multiple agents into a multi-agent system with shared state and routing.
  • .run() — available on both agent and network instances; this is the actual execution entry point. It drives the agentic loop: builds the initial message set from the system prompt and network state, calls the underlying model adapter, and immediately executes any tool call the model requests before returning output. For networks, .run() loops across agents according to the router until the network's goal condition is met.

None of createAgent, createNetwork, or their .run() methods appear anywhere in js/src/ (repo-wide case-insensitive search for "inngest" returns zero matches in source, configs, wrappers, plugins, or e2e scenarios). Braintrust currently gets no spans for AgentKit's model calls, tool invocations, or multi-agent routing decisions.

Weekly downloads

Weekly downloads: 19,608 (as of 2026-08-24; https://api.npmjs.org/downloads/point/last-week/@inngest/agent-kit — reported window 2026-08-17 to 2026-08-23)

Braintrust docs status

not_found — Checked https://www.braintrust.dev/docs/instrument/wrap-providers and https://www.braintrust.dev/docs/instrument (general instrumentation guide) plus a targeted search of braintrust.dev; no dedicated AgentKit/Inngest integration page exists (unlike, e.g., the dedicated Cloudflare Agents or OpenAI Agents SDK integration pages Braintrust does publish). Braintrust's docs describe the platform as framework-agnostic in principle, but there is no AgentKit-specific guide, wrapper, or trace processor documented.

Upstream references

Local files inspected

  • Repo-wide case-insensitive grep for inngest — zero matches anywhere in the repository (no source, config, wrapper, plugin, or e2e references).
  • js/src/auto-instrumentations/configs/ — no agent-kit/inngest config file.
  • js/src/wrappers/ — no corresponding wrapper.
  • e2e/scenarios/ — no AgentKit scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions