buroventures-harald-code-core
Version:
Harald Code Core - Core functionality for AI-powered coding assistant
37 lines (36 loc) • 1.04 kB
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { BaseTool, ToolLocation, ToolResult } from './tools.js';
import { Config } from '../config/config.js';
/**
* Parameters for the ReadFile tool
*/
export interface ReadFileToolParams {
/**
* The absolute path to the file to read
*/
absolute_path: string;
/**
* The line number to start reading from (optional)
*/
offset?: number;
/**
* The number of lines to read (optional)
*/
limit?: number;
}
/**
* Implementation of the ReadFile tool logic
*/
export declare class ReadFileTool extends BaseTool<ReadFileToolParams, ToolResult> {
private config;
static readonly Name: string;
constructor(config: Config);
validateToolParams(params: ReadFileToolParams): string | null;
getDescription(params: ReadFileToolParams): string;
toolLocations(params: ReadFileToolParams): ToolLocation[];
execute(params: ReadFileToolParams, _signal: AbortSignal): Promise<ToolResult>;
}