mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-02-18 06:30:50 +08:00
20 lines
374 B
TypeScript
20 lines
374 B
TypeScript
export interface ITool {
|
|
name: string;
|
|
description: string;
|
|
input_schema: any;
|
|
|
|
handler: (args: any, context: any) => Promise<string>;
|
|
}
|
|
|
|
export interface IAgent {
|
|
name: string;
|
|
|
|
tools: Map<string, ITool>;
|
|
|
|
shouldHandle: (req: any, config: any) => boolean;
|
|
|
|
reqHandler: (req: any, config: any) => void;
|
|
|
|
resHandler?: (payload: any, config: any) => void;
|
|
}
|