import { PassiveContextSource } from "./context.js"; import { ToolSet } from "ai"; //#region src/tools.d.ts /** * Creates an AI SDK ToolSet from passive context sources. * * This function converts passive context sources into tool definitions that * can be used with the AI SDK's `generateText` or `streamText` functions. * The LLM can then invoke these tools during translation to gather additional * context on demand. * * @param sources The passive context sources to convert into tools. * @param signal Optional abort signal to cancel the operation. * @returns A promise that resolves to a ToolSet keyed by source name. */ declare function createToolSet(sources: readonly PassiveContextSource[], signal?: AbortSignal): Promise; //#endregion export { createToolSet };