@devus.agent/dak-core
v1.0.0
Published
DAK — Devus Agent Kit. A unified, vendor-agnostic AI agent framework combining Genkit's developer experience with LangGraph's orchestration power.
Maintainers
Readme
@devus/dak-core
DAK — Devus Agent Kit
A unified, vendor-agnostic AI agent framework combining the developer experience of Genkit with the orchestration power of LangGraph—built for production from day one.
Features
- 🔌 Vendor Agnostic — Unified API across Gemini, OpenAI, Anthropic, Ollama
- 🧩 Plugin Architecture — Extensible model providers, vector stores, state backends
- 🔁 Stateful Orchestration — Checkpoints, time-travel debugging, resumable workflows
- 🛠️ Tool Registry — JSON Schema tools with parallel execution
- 📊 Observability — Built-in tracing, token usage, cost attribution
- 🐍 TypeScript & Python — First-class support for both runtimes
Quickstart
npm install @devus/dak-coreimport { DAK, GeminiProvider } from '@devus/dak-core';
const dak = new DAK({
providers: [{
provider: new GeminiProvider(),
config: { apiKey: process.env.GOOGLE_API_KEY }
}]
});
// Quick generation
const result = await dak.generate(
'google/gemini-2.0-flash',
'Explain quantum computing in simple terms'
);
console.log(result.text);Flows
const flow = dak.createFlow('research')
.generate({
name: 'draft',
modelId: 'google/gemini-2.0-flash',
prompt: 'Write about AI agents.',
outputKey: 'draft',
})
.checkpoint('after-draft')
.generate({
name: 'refine',
modelId: 'google/gemini-2.0-flash',
prompt: (state) => `Improve this: ${state.draft}`,
outputKey: 'final',
});
const result = await flow.run('thread-1');
console.log(result.state.final);Architecture
┌─────────────────────────────────────────┐
│ Your Application │
└────────────────┬────────────────────────┘
│
┌────────▼────────┐
│ DAK SDK │
└────────┬────────┘
┌───────────┼───────────┐
│ │ │
┌────▼────┐ ┌───▼──┐ ┌─────▼─────┐
│ Model │ │ Tool │ │ State │
│ Registry│ │ Reg. │ │ Manager │
└────┬────┘ └──────┘ └─────┬─────┘
│ │
┌────▼─────────────────────▼──────┐
│ Plugin System │
│ Gemini · OpenAI · Supabase · … │
└──────────────────────────────────┘Documentation
Full documentation: https://devus.space/docs/agentkit
License
MIT © devus.space
