-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtype.ts
More file actions
32 lines (29 loc) · 688 Bytes
/
type.ts
File metadata and controls
32 lines (29 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { Browser, Page } from 'puppeteer'
export interface TokenUsage {
prompt_tokens: number
completion_tokens: number
total_tokens: number
}
export interface StartResearchOptions {
model?: string
contextLengthLimit?: number
navigationTimeout?: number
debug?: boolean
autopilot?: boolean
waitUntil?: string
headless?: boolean
taskPrefix?: string
openaiApiKey?: string
logger?: (message: string) => void
}
export interface StartResearchContext {
thePrompt: string
tokenUsage: TokenUsage
downloaStarted?: boolean
pageLoaded?: boolean
requestCount?: number
requestBlock?: boolean
responseCount?: number
browser?: Browser
thePage?: Page
}