/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { BaseExampleProvider } from '../examples/base_example_provider.js'; import { Example } from '../examples/example.js'; import { BaseTool, RunAsyncToolRequest, ToolProcessLlmRequest } from './base_tool.js'; /** * A tool that adds (few-shot) examples to the LLM request. * * This tool is executed for each LLM request and is never called by the model; * it only mutates the outgoing request by appending few-shot instructions built * from the latest user query. */ export declare class ExampleTool extends BaseTool { readonly examples: Example[] | BaseExampleProvider; constructor(examples: Example[] | BaseExampleProvider); runAsync(_request: RunAsyncToolRequest): Promise; processLlmRequest({ toolContext, llmRequest, }: ToolProcessLlmRequest): Promise; }