donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
30 lines • 1.13 kB
TypeScript
import { z } from 'zod/v4';
import type { ToolCallContext } from '../models/ToolCallContext';
import type { ToolCallResult } from '../models/ToolCallResult';
import { BaseGptArgsSchema, NoArgsSchema } from '../models/ToolSchema';
import { Tool } from './Tool';
export type Cookie = {
name: string;
value: string;
domain: string;
path: string;
expires: string;
httpOnly: boolean;
secure: boolean;
sameSite: 'Strict' | 'Lax' | 'None';
partitionKey?: string;
};
export type CookieAnalysis = Cookie & {
analysis: string;
};
export type CookieAnalyses = {
cookies: CookieAnalysis[];
};
export declare class CreateBrowserCookieReportTool extends Tool<typeof NoArgsSchema, typeof BaseGptArgsSchema> {
static readonly NAME = "createBrowserCookieReport";
constructor();
call(context: ToolCallContext, _parameters: z.infer<typeof NoArgsSchema>): Promise<ToolCallResult>;
callFromGpt(context: ToolCallContext, _parameters: z.infer<typeof BaseGptArgsSchema>): Promise<ToolCallResult>;
private convertUnixTimeToString;
}
//# sourceMappingURL=CreateBrowserCookieReportTool.d.ts.map