This commit is contained in:
dahyeon committed 2026-04-17 00:47:02 -07:00
1 parent 7fa293c9e8
commit ae44aa03db
67 files changed
+6164 -243

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import type { GarnetClient } from "@common/garnet";
import type { RoomContextService } from "@room/room-context-service";
import type { ZodType } from "zod";
import type { OnboardingSession } from "@skills/onboarding/types";
export interface ToolContext {
chatroomId?: string | undefined;
userId?: string | undefined;
session?: OnboardingSession | null | undefined;
garnetClient?: GarnetClient | undefined;
roomContextService?: RoomContextService | undefined;
}
export interface Tool<A, R> {
name: string;
description: string;
argsSchema: ZodType<A>;
resultSchema: ZodType<R>;
execute(args: A, ctx: ToolContext): Promise<R>;
}