UNPKG

donobu

Version:

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

40 lines 1.13 kB
/** * This type defines the structure of the data source used when interpolating * templates in the context of tool calls. * * Note that unlike the ToolCall type, the data here is itself interpolated * from historical tool calls. For example, a ToolCall 'parameters' field * might look like... * { * "foo": "Hello {{$.calls[0].name}}", * } * ...if it was referencing the data from a past tool call. However, the * data here is the result of that interpolation, so it would look like... * { * "foo": "Hello foo", * } */ export type ToolTemplateDataSource = { /** * The environment variables available to the current Donobu flow. */ env: Record<string, string>; /** * The historical tool calls for the current Donobu flow. */ calls: { /** * The name of the tool that was called. */ name: string; /** * The arguments that were passed to the tool. */ args: any; /** * The result of the tool call. */ result: string; }[]; }; //# sourceMappingURL=ToolTemplateDataSource.d.ts.map