UNPKG

@tanstack/ai-code-mode

Version:

Secure TypeScript Code Mode for TanStack AI agents to execute sandboxed tool orchestration programs.

22 lines (21 loc) 742 B
export interface AgentSession { name: string; systemPrompt: string; memory: Record<string, unknown>; createdAt: number; lastUsedAt: number; } export interface AgentStore { get: (name: string) => Promise<AgentSession | null>; set: (name: string, session: AgentSession) => Promise<void>; delete: (name: string) => Promise<void>; list: () => Promise<Array<string>>; } export declare class InMemoryAgentStore implements AgentStore { private readonly sessions; get(name: string): Promise<AgentSession | null>; set(name: string, session: AgentSession): Promise<void>; delete(name: string): Promise<void>; list(): Promise<Array<string>>; } export declare function generateAgentName(): string;