dhalsim 1.3.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/index.js +5 -1
- package/dist/subagents/dhalsim.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,7 @@ Configure BrowseWeb subagent in `~/.llmist/cli.toml`:
|
|
|
37
37
|
model = "sonnet" # LLM model for the subagent (default: sonnet)
|
|
38
38
|
maxIterations = 20 # Max agent loop iterations (default: 15)
|
|
39
39
|
headless = true # Run browser in headless mode (default: true)
|
|
40
|
+
timeoutMs = 600000 # Overall timeout in ms (default: 300000 = 5 min, 0 = disabled)
|
|
40
41
|
```
|
|
41
42
|
|
|
42
43
|
#### Per-profile configuration
|
|
@@ -90,6 +91,12 @@ const result = await LLMist.createAgent()
|
|
|
90
91
|
.withModel('sonnet')
|
|
91
92
|
.withGadgets(new Dhalsim())
|
|
92
93
|
.askAndCollect('Go to google.com and search for "playwright"');
|
|
94
|
+
|
|
95
|
+
// With custom timeout (10 minutes)
|
|
96
|
+
const dhalsim = new Dhalsim({ timeoutMs: 600000 });
|
|
97
|
+
|
|
98
|
+
// Disable timeout for debugging
|
|
99
|
+
const debugDhalsim = new Dhalsim({ timeoutMs: 0 });
|
|
93
100
|
```
|
|
94
101
|
|
|
95
102
|
### Using Individual Gadgets
|
package/dist/index.js
CHANGED
|
@@ -16179,7 +16179,8 @@ Use this for web research, data extraction, form filling, or any web-based task.
|
|
|
16179
16179
|
url: z14.string().url().describe("Starting URL to navigate to"),
|
|
16180
16180
|
maxIterations: z14.number().optional().describe("Maximum number of steps before giving up (default: 15, configurable via CLI)"),
|
|
16181
16181
|
model: z14.string().optional().describe("Model to use for the browser agent (default: inherit from parent agent, configurable via CLI)"),
|
|
16182
|
-
headless: z14.boolean().optional().describe("Run browser in headless mode (default: true, configurable via CLI)")
|
|
16182
|
+
headless: z14.boolean().optional().describe("Run browser in headless mode (default: true, configurable via CLI)"),
|
|
16183
|
+
timeoutMs: z14.number().optional().describe("Overall timeout in ms (default: 300000 = 5 min, 0 = disabled, configurable via CLI)")
|
|
16183
16184
|
}),
|
|
16184
16185
|
timeoutMs: 300000
|
|
16185
16186
|
}) {
|
|
@@ -16189,6 +16190,9 @@ Use this for web research, data extraction, form filling, or any web-based task.
|
|
|
16189
16190
|
super();
|
|
16190
16191
|
this.customSessionManager = options?.sessionManager;
|
|
16191
16192
|
this.customSystemPrompt = options?.systemPrompt;
|
|
16193
|
+
if (options?.timeoutMs !== undefined) {
|
|
16194
|
+
this.timeoutMs = options.timeoutMs === 0 ? undefined : options.timeoutMs;
|
|
16195
|
+
}
|
|
16192
16196
|
}
|
|
16193
16197
|
async execute(params, ctx) {
|
|
16194
16198
|
const { task, url: url2 } = params;
|
|
@@ -17,6 +17,8 @@ export interface DhalsimOptions {
|
|
|
17
17
|
sessionManager?: DhalsimSessionManager;
|
|
18
18
|
/** Custom system prompt (defaults to DHALSIM_SYSTEM_PROMPT) */
|
|
19
19
|
systemPrompt?: string;
|
|
20
|
+
/** Overall timeout in milliseconds (default: 300000 = 5 min, 0 = disabled) */
|
|
21
|
+
timeoutMs?: number;
|
|
20
22
|
}
|
|
21
23
|
declare const Dhalsim_base: new () => {
|
|
22
24
|
description: string;
|
|
@@ -26,6 +28,7 @@ declare const Dhalsim_base: new () => {
|
|
|
26
28
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
27
29
|
model: z.ZodOptional<z.ZodString>;
|
|
28
30
|
headless: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
29
32
|
}, z.core.$strip>;
|
|
30
33
|
name: string | undefined;
|
|
31
34
|
timeoutMs: number | undefined;
|
|
@@ -35,6 +38,7 @@ declare const Dhalsim_base: new () => {
|
|
|
35
38
|
maxIterations?: number | undefined;
|
|
36
39
|
model?: string | undefined;
|
|
37
40
|
headless?: boolean | undefined;
|
|
41
|
+
timeoutMs?: number | undefined;
|
|
38
42
|
}>[] | undefined;
|
|
39
43
|
readonly params: {
|
|
40
44
|
task: string;
|
|
@@ -42,6 +46,7 @@ declare const Dhalsim_base: new () => {
|
|
|
42
46
|
maxIterations?: number | undefined;
|
|
43
47
|
model?: string | undefined;
|
|
44
48
|
headless?: boolean | undefined;
|
|
49
|
+
timeoutMs?: number | undefined;
|
|
45
50
|
};
|
|
46
51
|
execute(params: Record<string, unknown>, ctx?: ExecutionContext): import("llmist").GadgetExecuteReturn | Promise<import("llmist").GadgetExecuteReturn>;
|
|
47
52
|
throwIfAborted(ctx?: ExecutionContext): void;
|
|
@@ -60,6 +65,7 @@ declare const Dhalsim_base: new () => {
|
|
|
60
65
|
maxIterations?: number | undefined;
|
|
61
66
|
model?: string | undefined;
|
|
62
67
|
headless?: boolean | undefined;
|
|
68
|
+
timeoutMs?: number | undefined;
|
|
63
69
|
};
|
|
64
70
|
};
|
|
65
71
|
/**
|