npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@artemiskit/adapter-deepagents

v0.2.1

Published

DeepAgents.js adapter for ArtemisKit - Test DeepAgents multi-agent systems

Downloads

195

Readme

@artemiskit/adapter-deepagents

DeepAgents.js adapter for ArtemisKit - Test and evaluate DeepAgents multi-agent systems.

Installation

bun add @artemiskit/adapter-deepagents
# or
npm install @artemiskit/adapter-deepagents

Quick Start

Testing a Multi-Agent Team

import { createDeepAgentsAdapter } from '@artemiskit/adapter-deepagents';
import { createTeam, Agent } from 'deepagents';

// Create your DeepAgents team
const researcher = new Agent({
  name: 'researcher',
  role: 'Research specialist',
  tools: [webSearchTool, documentReader],
});

const writer = new Agent({
  name: 'writer',
  role: 'Content writer',
});

const team = createTeam({
  agents: [researcher, writer],
  workflow: 'sequential',
});

// Wrap with ArtemisKit adapter
const adapter = createDeepAgentsAdapter(team, {
  name: 'content-team',
  captureTraces: true,
  captureMessages: true,
});

// Use in ArtemisKit tests
const result = await adapter.generate({
  prompt: 'Write an article about AI testing best practices',
});

console.log(result.text); // Final article content

// Access execution metadata
const metadata = result.raw.metadata;
console.log(metadata.agentsInvolved); // ['researcher', 'writer']
console.log(metadata.totalToolCalls); // Number of tool invocations
console.log(metadata.totalMessages); // Messages exchanged between agents

Testing a Hierarchical Agent System

import { createDeepAgentsAdapter } from '@artemiskit/adapter-deepagents';
import { createHierarchy, Coordinator, Worker } from 'deepagents';

// Create hierarchical system
const coordinator = new Coordinator({
  name: 'manager',
  strategy: 'delegate-and-synthesize',
});

const workers = [
  new Worker({ name: 'analyst', specialty: 'data analysis' }),
  new Worker({ name: 'visualizer', specialty: 'chart creation' }),
];

const hierarchy = createHierarchy({ coordinator, workers });

const adapter = createDeepAgentsAdapter(hierarchy, {
  name: 'analysis-team',
  executionTimeout: 120000, // 2 minutes
});

const result = await adapter.generate({
  prompt: 'Analyze sales data and create visualizations',
});

Testing with Execution Tracing

const adapter = createDeepAgentsAdapter(mySystem, {
  name: 'traced-system',
  captureTraces: true,
  captureMessages: true,
});

const result = await adapter.generate({ prompt: 'Complex task' });

// Access detailed execution information
const { metadata } = result.raw;

// See which agents were involved
console.log('Agents:', metadata.agentsInvolved);

// See tools used
console.log('Tools:', metadata.toolsUsed);

// See full trace of execution
for (const trace of metadata.traces) {
  console.log(`${trace.agent}: ${trace.action}`, trace.output);
}

// See inter-agent communication
for (const msg of metadata.messages) {
  console.log(`${msg.from} -> ${msg.to}: ${msg.content}`);
}

Configuration Options

| Option | Type | Default | Description | | ------------------- | --------- | ---------- | ---------------------------------------- | | name | string | - | Identifier for the agent system | | captureTraces | boolean | true | Capture agent execution traces | | captureMessages | boolean | true | Capture inter-agent messages | | executionTimeout | number | 300000 | Max execution time (ms) | | inputTransformer | string | - | Custom input transformer function | | outputTransformer | string | - | Custom output transformer function |

Supported System Types

The adapter supports DeepAgents systems that implement one of these methods:

  • invoke(input, config) - Primary execution method
  • run(input, config) - Alternative execution method
  • execute(input, config) - Legacy execution method

All methods should return a DeepAgentsOutput object.

Streaming Support

If your system supports streaming via stream(), the adapter will use it:

for await (const chunk of adapter.stream({ prompt: 'Long task' }, console.log)) {
  // Process streaming events
}

Execution Metadata

The adapter captures rich metadata about multi-agent execution:

interface DeepAgentsExecutionMetadata {
  name?: string;                  // System name
  agentsInvolved: string[];       // All participating agents
  totalAgentCalls: number;        // Total agent invocations
  totalMessages: number;          // Messages exchanged
  totalToolCalls: number;         // Tool invocations across agents
  toolsUsed: string[];            // Unique tools used
  traces?: DeepAgentsTrace[];     // Full execution traces
  messages?: DeepAgentsMessage[]; // Full message log
  executionTimeMs?: number;       // Total execution time
}

ArtemisKit Integration

Use with ArtemisKit scenarios:

# scenario.yaml
name: multi-agent-test
provider: deepagents
scenarios:
  - name: Research Task
    input: 'Research and summarize recent AI developments'
    expected:
      contains: ['AI', 'development']
    metadata:
      minAgents: 2
// Register adapter in your test setup
import { adapterRegistry } from '@artemiskit/core';
import { DeepAgentsAdapter } from '@artemiskit/adapter-deepagents';

adapterRegistry.register('deepagents', async (config) => {
  // Your system setup
  return new DeepAgentsAdapter(config, myTeam);
});

License

Apache-2.0