Files
anomalyco_opencode/packages/llm/test/lib/tool-runtime.ts
T
2026-05-06 11:47:23 -04:00

9 lines
325 B
TypeScript

import { Effect, Stream } from "effect"
import type { Tools } from "../../src/tool"
import { ToolRuntime, type RunOptions } from "../../src/tool-runtime"
export const runTools = <T extends Tools>(options: RunOptions<T>) =>
Stream.unwrap(Effect.gen(function* () {
return (yield* ToolRuntime.Service).run(options)
}))