UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

42 lines 1.37 kB
import type { ToolCallResult } from './ToolCallResult'; /** * The record for a tool call. May represent an in-progress call (completedAt and outcome are null) * or a completed call (all fields populated). Used for persistence and APIs. */ export type ToolCall = { /** * The ID for this singular call. */ readonly id: string; /** * The tool name of the tool called. */ readonly toolName: string; /** * The parameters supplied to the tool. */ readonly parameters: Record<string, any>; /** * The result of the tool call. Null while the tool call is in progress. */ readonly outcome: ToolCallResult | null; /** * The ID of the image of the page after the tool was called. If the page was * closed during the tool call, this will be null. Also null while in progress. */ readonly postCallImageId: string | null; /** * The URL of the webpage that the tool had focus on when running. */ readonly page: string; /** * The Unix epoch millisecond timestamp of the instant the tool was called. */ readonly startedAt: number; /** * The Unix epoch millisecond timestamp of the instant the tool completed. * Null while the tool call is in progress. */ readonly completedAt: number | null; }; //# sourceMappingURL=ToolCall.d.ts.map