/** * ZooGent Agent SDK — drop-in replacement for paperclip.ts * * All functions read ZOOGENT_* env vars automatically. * All reporting calls are fail-open (catch errors silently). */ export interface Task { id: number; agentId: string; createdByAgentId: string | null; title: string; payload: string | null; status: string; result: string | null; } export declare function createTask(params: { agentId: string; title: string; payload?: any; createdByAgentId?: string; consensus?: boolean; consensusAgents?: string[]; consensusStrategy?: 'majority' | 'unanimous' | 'average_score'; }): Promise; export declare function getMyTasks(status?: string): Promise; export declare function checkoutTask(taskId: number): Promise; export declare function completeTask(taskId: number, result?: string): Promise; export declare function failTask(taskId: number, result?: string): Promise; export declare function reportCost(params: { model: string; inputTokens: number; outputTokens: number; costCents: number; provider?: string; }): Promise; export declare function reportMemory(params: { content: string; importance?: number; tags?: string[]; }): Promise; export declare function getGoal(): string; export declare function getMemories(): any[]; export declare function submitEvaluation(params: { taskId: number; verdict: 'approve' | 'reject' | 'revise'; score?: number; reasoning?: string; }): Promise; /** Get auto-injected skills content (from ZOOGENT_AGENT_SKILLS env var). */ export declare function getSkills(): string; /** Load a skill via HTTP API by path. */ export declare function loadSkill(skillPath: string): Promise; /** Load multiple skills via HTTP API, concatenated with separators. */ export declare function loadSkills(paths: string[]): Promise; /** Get auto-injected team knowledge (from ZOOGENT_TEAM_KNOWLEDGE env var). */ export declare function getTeamKnowledge(): { title: string; content: string; }[]; /** Propose team knowledge (will be draft or auto-approved based on settings). */ export declare function reportTeamKnowledge(params: { title: string; content: string; }): Promise; /** Get a value from agent's persistent store. Returns null if key doesn't exist or is expired. */ export declare function storeGet(key: string): Promise; /** Set a key-value pair in agent's persistent store. Value can be any JSON-serializable data. */ export declare function storeSet(key: string, value: any, ttlSeconds?: number): Promise; /** Delete a key from agent's persistent store. */ export declare function storeDelete(key: string): Promise; /** List keys in agent's persistent store, optionally filtered by prefix. */ export declare function storeKeys(prefix?: string): Promise; /** * Read another agent's store value. Both agents must be in the same team. * Returns null if the key doesn't exist, is expired, or the target agent * isn't in the caller's team. */ export declare function crossStoreGet(agentId: string, key: string): Promise; /** * List keys in another agent's store, optionally filtered by prefix. * Returns an empty array if the target agent isn't in the caller's team. */ export declare function crossStoreKeys(agentId: string, prefix?: string): Promise; /** * Write a value to another agent's store (same team only). Last-write-wins — * concurrent writers will overwrite each other without conflict detection. Use * sparingly: prefer the producer-writes / consumer-reads pattern over multiple * writers. Returns true on success. */ export declare function crossStoreSet(agentId: string, key: string, value: any, ttlSeconds?: number): Promise; export declare function heartbeat(): Promise;