refactor(tool): make Tool.Info init effectful (#21989)
This commit is contained in:
@@ -50,7 +50,7 @@ type ToolCtx = typeof baseCtx & {
|
||||
|
||||
const execute = async (params: { patchText: string }, ctx: ToolCtx) => {
|
||||
const info = await runtime.runPromise(ApplyPatchTool)
|
||||
const tool = await info.init()
|
||||
const tool = await runtime.runPromise(info.init())
|
||||
return Effect.runPromise(tool.execute(params, ctx))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user