simplify ToolRegistry Interface tools return type

kit/effectify-tool-registry
Kit Langton 2026-03-19 15:41:30 -04:00
parent 9ac18e2042
commit d08c119743
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export namespace ToolRegistry {
readonly tools: (
model: { providerID: ProviderID; modelID: ModelID },
agent?: Agent.Info,
) => Effect.Effect<{ id: string; description: string; parameters: z.ZodType; execute: Awaited<ReturnType<Tool.Info["init"]>>["execute"] }[]>
) => Effect.Effect<(Awaited<ReturnType<Tool.Info["init"]>> & { id: string })[]>
}
export class Service extends ServiceMap.Service<Service, Interface>()("@opencode/ToolRegistry") {}