Sign In

@t2000/engine

Package Overview
Dependencies
Maintainers
1
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t2000/engine

Agent engine for conversational finance — AISDKEngine (wraps Vercel AI SDK v6 `streamText`) with 26 tools (18 read, 8 write), 12-guard runner across 3 priority tiers, silent intelligence layer, streaming, canvas, BlockVision-backed pricing. Chat-first by

Source
npmnpm
Version
4.2.2
Version published
Weekly downloads
973
1270.42%
Maintainers
1
Weekly downloads
 
Created
Source

@t2000/engine

The agent engine for conversational finance on Sui. AISDKEngine orchestrates LLM conversations, 26 financial tools, user confirmations, and MCP integrations into a single async-generator loop. Powers Audric.

npm @t2000/engine npm @t2000/sdk docs license

Not a chatbot. A financial agent. Four systems work together to understand the user's money (Memory), reason about decisions (Reasoning Engine), act through 26 financial tools in one conversation (Agent Harness), and remember what it told them (AdviceLog). Every action it triggers still waits on user confirmation.

Install

npm install @t2000/engine @t2000/sdk

Requires Node.js 18+ · TypeScript 5+ recommended.

Quick start

import { AISDKEngine, getDefaultTools } from '@t2000/engine';
import { T2000 } from '@t2000/sdk';

const agent = await T2000.create();

const engine = new AISDKEngine({
  anthropicApiKey: process.env.ANTHROPIC_API_KEY,
  agent,
  tools: getDefaultTools(),
});

for await (const event of engine.submitMessage('What is my balance?')) {
  switch (event.type) {
    case 'text_delta':
      process.stdout.write(event.text);
      break;
    case 'tool_start':
      console.log(`\n[calling ${event.toolName}]`);
      break;
    case 'pending_action':
      // Write tool needs approval — client executes, then calls engine.resumeWithToolResult()
      break;
  }
}

For custom LLM providers or gateway routing, pass a pre-built LanguageModel via modelInstance instead of anthropicApiKey.

The 4 systems

SystemOne-line
🎛️ Agent Harness26 tools (18 read + 8 write), one agent. Parallel reads via the AI SDK step model; serial writes via a needsApproval round-trip.
Reasoning EngineThinks before it acts. Adaptive thinking effort, 12 guards across 3 priority tiers (Safety > Financial > UX), preflight validation, prompt caching.
🧠 MemoryKnows your finances. Vector-search-backed MemoryStore (recall + write) injected by the host; engine assembles a 5-layer system prompt with prepareStep.
📓 AdviceLogRemembers what it told you. Host-side log (record_advice); last 30 days hydrate every turn so the chat never contradicts itself.

The engine package owns Agent Harness and Reasoning Engine, plus the MemoryStore interface. Vector backends (e.g. MemWal), daily <financial_context> snapshots, and the AdviceLog model live host-side.

Full reference

Event types, tool surface, USD-aware permission resolver, stream checkpoint resume, memory injection, MCP client + server adapters, host contract → developers.t2000.ai/agent-engine

License

MIT — see LICENSE.

Keywords

sui

FAQs

Package last updated on 02 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts