JSPM

@firtoz/chat-agent-sql

2.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 172
  • Score
    100M100P100Q74948F
  • License MIT

Raw SQL persistence for @firtoz/chat-agent on Cloudflare Durable Objects

Package Exports

  • @firtoz/chat-agent-sql

Readme

@firtoz/chat-agent-sql

npm version npm downloads license

TypeScript Cloudflare SQL

Raw this.sql persistence for @firtoz/chat-agentSqlChatAgent with no Drizzle; tables created in dbInitialize().

Install

bun add @firtoz/chat-agent @firtoz/chat-agent-sql

No Drizzle or migration files: tables are created in dbInitialize().

Usage

import { defineTool } from "@firtoz/chat-agent";
import { SqlChatAgent } from "@firtoz/chat-agent-sql";

class MyAgent extends SqlChatAgent<Env> {
  /* getSystemPrompt, getModel, getTools, … */
}

When to use

Prefer @firtoz/chat-agent-drizzle for typed queries and versioned migrations. Use this package for minimal dependencies or full control over SQL.

License

MIT