Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/tools / / createReadResultTool

Function: createReadResultTool()

ts
function createReadResultTool(opts): Tool<{
  endLine?: number;
  handle: string;
  length?: number;
  maxBytes?: number;
  offset?: number;
  startLine?: number;
}, {
  bytes: number;
  content: string;
  eof: boolean;
  totalBytes: number;
}>;

Defined in: packages/tools/src/built-in/read-result.ts:55

Build a read_result tool bound to a specific ResultReader.

Parameters

ParameterType
optsReadResultToolOptions

Returns

Tool<{ endLine?: number; handle: string; length?: number; maxBytes?: number; offset?: number; startLine?: number; }, { bytes: number; content: string; eof: boolean; totalBytes: number; }>

Stable