UNPKG

@travisennis/acai-brainstorm

Version:

A set of brainstorming agents and tools to use with AI.SDK.

20 lines (19 loc) 623 B
import { type LanguageModel } from "ai"; export interface TreeNode { value: string; children: TreeNode[]; addChild(child: TreeNode): void; } export declare class TreeNodeImpl implements TreeNode { value: string; children: TreeNode[]; constructor(value: string); addChild(child: TreeNode): void; } export declare const printTree: (node: TreeNode, level?: number) => string; export declare const parseBulletPoints: (text: string) => string[]; export declare const generateInitialIdeas: ({ model, query, n, }: { model: LanguageModel; query: string; n?: number; }) => Promise<string[]>;