Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

513 B
Raw Blame
import { CalculatorManifest } from '@lobechat/builtin-tool-calculator';
import { CalculatorExecutionRuntime } from '@lobechat/builtin-tool-calculator/executionRuntime';

import { type ServerRuntimeRegistration } from './types';

/**
 * Calculator Server Runtime
 * Pre-instantiated runtime (no per-request context needed)
 */
const runtime = new CalculatorExecutionRuntime();

export const calculatorRuntime: ServerRuntimeRegistration = {
  factory: () => runtime,
  identifier: CalculatorManifest.identifier,
};