19 lines
674 B
TypeScript
19 lines
674 B
TypeScript
export type ToolDefinition = any;
|
|
export interface AgentConfig {
|
|
name: string;
|
|
description: string;
|
|
model: string;
|
|
promptId: string;
|
|
tools: ToolDefinition[];
|
|
}
|
|
export declare function registerAgent(config: AgentConfig): void;
|
|
export declare function getAgent(name: string): AgentConfig | undefined;
|
|
export declare function allAgents(): AgentConfig[];
|
|
/**
|
|
* Backwards-compatible AGENTS object — populated as agents register.
|
|
* server.ts uses AGENTS[name] and Object.values(AGENTS).
|
|
*/
|
|
export declare const AGENTS: Record<string, AgentConfig>;
|
|
/** Pick tools from ALL_TOOLS by name. */
|
|
export declare function pick(names: string[]): ToolDefinition[];
|