This commit is contained in:
dahyeon committed 2026-05-14 14:28:59 -07:00
1 parent da76af3826
commit e4f7a5df48
72 files changed
+7077 -113

No files matched your search

+16
View File
@@ -3,6 +3,7 @@ import type { NatsClient } from "@common/nats";
import type { RoomContextService } from "@room/room-context-service";
import type { ZodType } from "zod";
import type { OnboardingSession } from "@skills/onboarding/types";
import type { ToolRegistry } from "./registry.js";
export interface ToolContext {
chatroomId?: string | undefined;
@@ -11,6 +12,21 @@ export interface ToolContext {
session?: OnboardingSession | null | undefined;
garnetClient?: GarnetClient | undefined;
roomContextService?: RoomContextService | undefined;
toolRegistry?: ToolRegistry | undefined;
}
export type ToolErrorKind =
| "args-invalid"
| "transient"
| "precondition-failed"
| "permanent";
export interface ToolExecutionFailure {
kind: ToolErrorKind;
toolName: string;
message: string;
retryable: boolean;
details?: unknown;
}
export interface Tool<A, R> {