Skip to content

Commit

Permalink
refactor(tsconfig): enhance type safety and apply changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpiac committed Feb 24, 2025
1 parent 103c454 commit d7e4434
Show file tree
Hide file tree
Showing 33 changed files with 400 additions and 368 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export declare class EvaluationAgent {
answer: string;
memory: string;
}): Promise<{
result?: "unknown" | "failed" | "success";
explanation?: string;
result: "unknown" | "success" | "failed";
explanation: string;
}>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export declare class EvaluationAgentSystemPrompt {
}
export declare class EvaluationAgentUserPrompt {
constructor();
getUserPrompt({ task, answer, screenshotCount, memory }: {
task: any;
answer: any;
screenshotCount: any;
memory: any;
getUserPrompt({ task, answer, screenshotCount, memory, }: {
screenshotCount: number;
task: string;
answer: string;
memory: string;
}): string;
getUserMessage({ screenshotUrls, task, answer, memory, }: {
screenshotUrls: string[];
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ export declare const EvaluationResponseSchema: z.ZodObject<{
result: z.ZodUnion<[z.ZodLiteral<"success">, z.ZodLiteral<"failed">, z.ZodLiteral<"unknown">]>;
explanation: z.ZodString;
}, "strip", z.ZodTypeAny, {
result?: "unknown" | "failed" | "success";
explanation?: string;
result: "unknown" | "failed" | "success";
explanation: string;
}, {
result?: "unknown" | "failed" | "success";
explanation?: string;
result: "unknown" | "failed" | "success";
explanation: string;
}>;
export type EvaluationResponse = z.infer<typeof EvaluationResponseSchema>;
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export declare class FeedbackAgent {
previousTaskResult: string;
taskHistorySummary: string;
}): Promise<{
result?: "unknown" | "failed" | "success";
explanation?: string;
hint?: string;
memoryLearning?: string;
result: "unknown" | "success" | "failed";
explanation: string;
hint: string;
memoryLearning: string;
}>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export declare class EvaluationAgentSystemPrompt {
export declare class EvaluationAgentUserPrompt {
constructor();
getUserPrompt({ pageUrl, task, answer, screenshotCount, taskHistorySummary, previousTaskResult, }: {
pageUrl: any;
task: any;
answer: any;
screenshotCount: any;
taskHistorySummary: any;
previousTaskResult: any;
pageUrl: string;
task: string;
answer: string;
screenshotCount: number;
taskHistorySummary: string;
previousTaskResult: string;
}): string;
getUserMessage({ pageUrl, screenshotUrls, task, answer, taskHistorySummary, previousTaskResult, }: {
pageUrl: string;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ export declare const EvaluationResponseSchema: z.ZodObject<{
hint: z.ZodString;
memoryLearning: z.ZodString;
}, "strip", z.ZodTypeAny, {
result?: "unknown" | "failed" | "success";
explanation?: string;
hint?: string;
memoryLearning?: string;
result: "unknown" | "failed" | "success";
explanation: string;
hint: string;
memoryLearning: string;
}, {
result?: "unknown" | "failed" | "success";
explanation?: string;
hint?: string;
memoryLearning?: string;
result: "unknown" | "failed" | "success";
explanation: string;
hint: string;
memoryLearning: string;
}>;
export type EvaluationResponse = z.infer<typeof EvaluationResponseSchema>;
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export type OpenatorConfig = {
maxActionsPerTask?: number;
maxRetries?: number;
variables: Variable[];
taskManager?: TaskManagerService;
domService?: DomService;
feedbackAgent?: FeedbackAgent;
browserService?: Browser;
llmService?: LLM;
taskManager: TaskManagerService;
domService: DomService;
feedbackAgent: FeedbackAgent;
browserService: Browser;
llmService: LLM;
reporter: AgentReporter;
eventBus?: EventBusInterface;
summarizer: SummarizeAgent;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d7e4434

Please sign in to comment.