@syntheticlab/synbad 0.0.5 → 0.0.7

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.
Files changed (60) hide show
  1. package/README.md +60 -23
  2. package/dist/evals/reasoning/custom-harness.d.ts +679 -0
  3. package/dist/evals/reasoning/custom-harness.js +847 -0
  4. package/dist/evals/reasoning/multiturn-reasoning-parsing.d.ts +2 -2
  5. package/dist/evals/reasoning/multiturn-reasoning-parsing.js +2 -2
  6. package/dist/evals/reasoning/reasoning-claude-tool-call.d.ts +2 -2
  7. package/dist/evals/reasoning/reasoning-claude-tool-call.js +1 -2
  8. package/dist/evals/reasoning/reasoning-parsing.d.ts +2 -2
  9. package/dist/evals/reasoning/reasoning-parsing.js +2 -2
  10. package/dist/evals/reasoning/response-in-reasoning.d.ts +45 -0
  11. package/dist/evals/reasoning/response-in-reasoning.js +59 -0
  12. package/dist/evals/tools/claude-dash.d.ts +2 -2
  13. package/dist/evals/tools/claude-dash.js +1 -2
  14. package/dist/evals/tools/crush-list-files.d.ts +2 -5
  15. package/dist/evals/tools/crush-list-files.js +6 -8
  16. package/dist/evals/tools/multi-turn-tools.d.ts +46 -0
  17. package/dist/evals/tools/multi-turn-tools.js +100 -0
  18. package/dist/evals/tools/no-fn-args.d.ts +22 -0
  19. package/dist/evals/tools/no-fn-args.js +31 -0
  20. package/dist/evals/tools/octo-list-no-optional-args.d.ts +209 -0
  21. package/dist/evals/tools/octo-list-no-optional-args.js +73 -0
  22. package/dist/evals/tools/parallel-tool.d.ts +2 -2
  23. package/dist/evals/tools/parallel-tool.js +1 -2
  24. package/dist/evals/tools/simple-tool.d.ts +2 -2
  25. package/dist/evals/tools/simple-tool.js +3 -2
  26. package/dist/evals/tools/tool-dash-underscore.d.ts +26 -0
  27. package/dist/evals/tools/tool-dash-underscore.js +37 -0
  28. package/dist/evals/tools/tool-path-corruption.d.ts +26 -0
  29. package/dist/evals/tools/tool-path-corruption.js +41 -0
  30. package/dist/source/asserts.d.ts +4 -1
  31. package/dist/source/asserts.js +36 -0
  32. package/dist/source/chat-completion.d.ts +5 -0
  33. package/dist/source/chat-completion.js +1 -0
  34. package/dist/source/evals.d.ts +9 -0
  35. package/dist/source/evals.js +53 -0
  36. package/dist/source/evals.test.d.ts +1 -0
  37. package/dist/source/evals.test.js +12 -0
  38. package/dist/source/exports.d.ts +2 -0
  39. package/dist/source/exports.js +1 -0
  40. package/dist/source/index.js +103 -43
  41. package/evals/reasoning/multiturn-reasoning-parsing.ts +3 -3
  42. package/evals/reasoning/reasoning-claude-tool-call.ts +2 -3
  43. package/evals/reasoning/reasoning-parsing.ts +3 -3
  44. package/evals/reasoning/response-in-reasoning.ts +65 -0
  45. package/evals/tools/claude-dash.ts +2 -3
  46. package/evals/tools/crush-list-files.ts +11 -13
  47. package/evals/tools/multi-turn-tools.ts +104 -0
  48. package/evals/tools/no-fn-args.ts +34 -0
  49. package/evals/tools/octo-list-no-optional-args.ts +81 -0
  50. package/evals/tools/parallel-tool.ts +2 -3
  51. package/evals/tools/simple-tool.ts +4 -3
  52. package/evals/tools/tool-dash-underscore.ts +40 -0
  53. package/evals/tools/tool-path-corruption.ts +46 -0
  54. package/package.json +10 -3
  55. package/source/asserts.ts +37 -1
  56. package/source/chat-completion.ts +6 -0
  57. package/source/evals.test.ts +13 -0
  58. package/source/evals.ts +56 -0
  59. package/source/exports.ts +2 -0
  60. package/source/index.ts +121 -44
@@ -1,5 +1,5 @@
1
- import { ChatResponse } from "../../source/chat-completion.ts";
2
- export declare function test(response: ChatResponse): void;
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test(message: ChatMessage): void;
3
3
  export declare const json: {
4
4
  messages: ({
5
5
  role: string;
@@ -1,7 +1,7 @@
1
1
  import * as assert from "../../source/asserts.js";
2
2
  import { getReasoning } from "../../source/chat-completion.js";
3
- export function test(response) {
4
- const reasoning = getReasoning(response.choices[0].message);
3
+ export function test(message) {
4
+ const reasoning = getReasoning(message);
5
5
  assert.isNotNullish(reasoning);
6
6
  }
7
7
  export const json = {
@@ -1,5 +1,5 @@
1
- import { ChatResponse } from "../../source/chat-completion.ts";
2
- export declare function test(response: ChatResponse): void;
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test({ tool_calls }: ChatMessage): void;
3
3
  export declare const json: {
4
4
  messages: ({
5
5
  role: string;
@@ -1,6 +1,5 @@
1
1
  import * as assert from "../../source/asserts.js";
2
- export function test(response) {
3
- const { tool_calls } = response.choices[0].message;
2
+ export function test({ tool_calls }) {
4
3
  assert.isNotNullish(tool_calls);
5
4
  assert.isNotEmptyArray(tool_calls);
6
5
  assert.strictEqual(tool_calls.length, 1);
@@ -1,5 +1,5 @@
1
- import { ChatResponse } from "../../source/chat-completion.ts";
2
- export declare function test(response: ChatResponse): void;
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test(message: ChatMessage): void;
3
3
  export declare const json: {
4
4
  messages: {
5
5
  role: string;
@@ -1,7 +1,7 @@
1
1
  import * as assert from "../../source/asserts.js";
2
2
  import { getReasoning } from "../../source/chat-completion.js";
3
- export function test(response) {
4
- const reasoning = getReasoning(response.choices[0].message);
3
+ export function test(message) {
4
+ const reasoning = getReasoning(message);
5
5
  assert.isNotNullish(reasoning);
6
6
  }
7
7
  export const json = {
@@ -0,0 +1,45 @@
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test(message: ChatMessage): void;
3
+ export declare const json: {
4
+ messages: ({
5
+ role: string;
6
+ content: string;
7
+ } | {
8
+ role: string;
9
+ content: {
10
+ type: string;
11
+ text: string;
12
+ }[];
13
+ })[];
14
+ temperature: number;
15
+ tools: {
16
+ type: string;
17
+ function: {
18
+ name: string;
19
+ description: string;
20
+ parameters: {
21
+ type: string;
22
+ properties: {
23
+ description: {
24
+ description: string;
25
+ type: string;
26
+ };
27
+ prompt: {
28
+ description: string;
29
+ type: string;
30
+ };
31
+ subagent_type: {
32
+ description: string;
33
+ type: string;
34
+ };
35
+ session_id: {
36
+ description: string;
37
+ type: string;
38
+ };
39
+ };
40
+ required: string[];
41
+ };
42
+ };
43
+ }[];
44
+ tool_choice: string;
45
+ };
@@ -0,0 +1,59 @@
1
+ import * as assert from "../../source/asserts.js";
2
+ export function test(message) {
3
+ const content = message.content;
4
+ assert.or(() => assert.isNotNullish(content), () => assert.isNotEmptyArray(message.tool_calls));
5
+ }
6
+ export const json = {
7
+ "messages": [
8
+ {
9
+ "role": "system",
10
+ "content": "When I ask you to add a feature or resolve a problem: ALWAYS start the project explorer sub-agent to build complete understanding"
11
+ },
12
+ {
13
+ "role": "user",
14
+ "content": [
15
+ {
16
+ "type": "text",
17
+ "text": "Hello"
18
+ }
19
+ ]
20
+ }
21
+ ],
22
+ "temperature": 1,
23
+ "tools": [
24
+ {
25
+ "type": "function",
26
+ "function": {
27
+ "name": "task",
28
+ "description": "Launch a new agent to handle complex, multi-step tasks autonomously.\n\nAvailable agent types and the tools they have access to:\n- general: General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.\n- explore: Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.\n- code-reviewer: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.\n\nWhen using the Task tool, you must specify a subagent_type parameter to select which agent type to use.\n\nWhen to use the Task tool:\n- When you are instructed to execute custom slash commands. Use the Task tool with the slash command invocation as the entire prompt. The slash command can take arguments. For example: Task(description=\"Check the file\", prompt=\"/check-file path/to/file.py\")\n\nWhen NOT to use the Task tool:\n- If you want to read a specific file path, use the Read or Glob tool instead of the Task tool, to find the match more quickly\n- If you are searching for a specific class definition like \"class Foo\", use the Glob tool instead, to find the match more quickly\n- If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Task tool, to find the match more quickly\n- Other tasks that are not related to the agent descriptions above\n\n\nUsage notes:\n1. Launch multiple agents concurrently whenever possible, to maximize performance; to do that, use a single message with multiple tool uses\n2. When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.\n3. Each agent invocation is stateless unless you provide a session_id. Your prompt should contain a highly detailed task description for the agent to perform autonomously and you should specify exactly what information the agent should return back to you in its final and only message to you.\n4. The agent's outputs should generally be trusted\n5. Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent\n6. If the agent description mentions that it should be used proactively, then you should try your best to use it without the user having to ask for it first. Use your judgement.\n\n",
29
+ "parameters": {
30
+ "type": "object",
31
+ "properties": {
32
+ "description": {
33
+ "description": "A short (3-5 words) description of the task",
34
+ "type": "string"
35
+ },
36
+ "prompt": {
37
+ "description": "The task for the agent to perform",
38
+ "type": "string"
39
+ },
40
+ "subagent_type": {
41
+ "description": "The type of specialized agent to use for this task",
42
+ "type": "string"
43
+ },
44
+ "session_id": {
45
+ "description": "Existing Task session to continue",
46
+ "type": "string"
47
+ }
48
+ },
49
+ "required": [
50
+ "description",
51
+ "prompt",
52
+ "subagent_type"
53
+ ]
54
+ }
55
+ }
56
+ },
57
+ ],
58
+ "tool_choice": "auto"
59
+ };
@@ -1,5 +1,5 @@
1
- import OpenAI from "openai";
2
- export declare function test(response: OpenAI.ChatCompletion): void;
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test({ tool_calls }: ChatMessage): void;
3
3
  export declare const json: {
4
4
  messages: ({
5
5
  role: string;
@@ -1,6 +1,5 @@
1
1
  import * as assert from "../../source/asserts.js";
2
- export function test(response) {
3
- const { tool_calls } = response.choices[0].message;
2
+ export function test({ tool_calls }) {
4
3
  assert.isNotNullish(tool_calls);
5
4
  assert.isNotEmptyArray(tool_calls);
6
5
  }
@@ -1,5 +1,5 @@
1
- import OpenAI from "openai";
2
- export declare function test(response: OpenAI.ChatCompletion): void;
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test({ tool_calls }: ChatMessage): void;
3
3
  export declare const json: {
4
4
  messages: {
5
5
  content: string;
@@ -670,7 +670,4 @@ export declare const json: {
670
670
  })[];
671
671
  tool_choice: string;
672
672
  max_tokens: number;
673
- stream_options: {
674
- include_usage: boolean;
675
- };
676
673
  };
@@ -1,15 +1,16 @@
1
1
  import * as assert from "../../source/asserts.js";
2
- export function test(response) {
3
- const { tool_calls } = response.choices[0].message;
2
+ export function test({ tool_calls }) {
4
3
  assert.isNotNullish(tool_calls);
5
4
  assert.isNotEmptyArray(tool_calls);
6
- assert.strictEqual(tool_calls.length, 1);
5
+ assert.gte(tool_calls.length, 1);
7
6
  assert.strictEqual(tool_calls[0].type, "function");
8
7
  const fn = tool_calls[0].function;
9
8
  assert.or(() => {
10
9
  assert.strictEqual(fn.name, "ls");
11
- const args = JSON.parse(fn.arguments);
12
- assert.or(() => assert.strictEqual(args.path, "/home/reissbaker/Hack/scratch-scripts"), () => assert.strictEqual(args.path, "."), () => assert.isNullish(args.path));
10
+ if (fn.arguments) {
11
+ const args = JSON.parse(fn.arguments);
12
+ assert.or(() => assert.strictEqual(args.path, "/home/reissbaker/Hack/scratch-scripts"), () => assert.strictEqual(args.path, "."), () => assert.isNullish(args.path));
13
+ }
13
14
  }, () => {
14
15
  assert.strictEqual(fn.name, "bash");
15
16
  const args = JSON.parse(fn.arguments);
@@ -435,7 +436,4 @@ export const json = {
435
436
  ],
436
437
  "tool_choice": "auto",
437
438
  "max_tokens": 60000,
438
- "stream_options": {
439
- "include_usage": true
440
- }
441
439
  };
@@ -0,0 +1,46 @@
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test({ tool_calls }: ChatMessage): void;
3
+ export declare const json: {
4
+ messages: ({
5
+ role: string;
6
+ content: string;
7
+ tool_calls?: undefined;
8
+ tool_call_id?: undefined;
9
+ } | {
10
+ role: string;
11
+ tool_calls: {
12
+ id: string;
13
+ type: string;
14
+ function: {
15
+ name: string;
16
+ arguments: string;
17
+ };
18
+ }[];
19
+ content?: undefined;
20
+ tool_call_id?: undefined;
21
+ } | {
22
+ role: string;
23
+ tool_call_id: string;
24
+ content: string;
25
+ tool_calls?: undefined;
26
+ })[];
27
+ tools: {
28
+ type: string;
29
+ function: {
30
+ name: string;
31
+ description: string;
32
+ parameters: {
33
+ type: string;
34
+ properties: {
35
+ location: {
36
+ type: string;
37
+ description: string;
38
+ };
39
+ };
40
+ required: string[];
41
+ };
42
+ };
43
+ }[];
44
+ parallel_tool_calls: boolean;
45
+ tool_choice: string;
46
+ };
@@ -0,0 +1,100 @@
1
+ import * as assert from "../../source/asserts.js";
2
+ export function test({ tool_calls }) {
3
+ assert.isNotNullish(tool_calls);
4
+ assert.isNotEmptyArray(tool_calls);
5
+ assert.gte(tool_calls.length, 1);
6
+ assert.ok(tool_calls.some(tool_call => {
7
+ if (tool_call.type === "function" && tool_call.function.name === "get_weather") {
8
+ const location = JSON.parse(tool_call.function.arguments).location;
9
+ if (typeof location === "string") {
10
+ return location.toLowerCase().match(/las vegas/);
11
+ }
12
+ }
13
+ return false;
14
+ }), "At least one tool call must be get_weather({ location: 'las_vegas' })");
15
+ }
16
+ export const json = {
17
+ "messages": [
18
+ {
19
+ role: "user",
20
+ content: "What's the weather in Paris?"
21
+ },
22
+ {
23
+ role: "assistant",
24
+ tool_calls: [
25
+ {
26
+ id: "gw1",
27
+ type: "function",
28
+ function: {
29
+ name: "get_weather",
30
+ arguments: JSON.stringify({
31
+ location: "Paris, France",
32
+ }),
33
+ },
34
+ },
35
+ ],
36
+ },
37
+ {
38
+ role: "tool",
39
+ tool_call_id: "gw1",
40
+ content: "The weather in Paris is 24 degrees Celsius",
41
+ },
42
+ {
43
+ role: "assistant",
44
+ content: "I've looked up the weather in Paris, and it's a comfy 24 degrees Celsius today.",
45
+ },
46
+ {
47
+ role: "user",
48
+ content: "I meant Paris, Texas",
49
+ },
50
+ {
51
+ role: "assistant",
52
+ tool_calls: [
53
+ {
54
+ id: "gw2",
55
+ type: "function",
56
+ function: {
57
+ name: "get_weather",
58
+ arguments: JSON.stringify({
59
+ location: "Paris, Texas",
60
+ }),
61
+ },
62
+ },
63
+ ],
64
+ },
65
+ {
66
+ role: "tool",
67
+ tool_call_id: "gw2",
68
+ content: "The weather in Paris, Texas is 34 degrees Celsius",
69
+ },
70
+ {
71
+ role: "assistant",
72
+ content: "I've looked up the weather in Paris, Texas and it's a scorching 24 degrees Celsius today.",
73
+ },
74
+ {
75
+ role: "user",
76
+ content: "How about the weather in Las Vegas",
77
+ },
78
+ ],
79
+ "tools": [
80
+ {
81
+ "type": "function",
82
+ "function": {
83
+ "name": "get_weather",
84
+ "description": "Get current weather for a location",
85
+ "parameters": {
86
+ "type": "object",
87
+ "properties": {
88
+ "location": {
89
+ "type": "string",
90
+ "description": "City name"
91
+ }
92
+ },
93
+ "required": ["location"]
94
+ }
95
+ }
96
+ }
97
+ ],
98
+ "parallel_tool_calls": true,
99
+ "tool_choice": "auto",
100
+ };
@@ -0,0 +1,22 @@
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test({ tool_calls }: ChatMessage): void;
3
+ export declare const json: {
4
+ messages: {
5
+ role: string;
6
+ content: string;
7
+ }[];
8
+ tools: {
9
+ type: string;
10
+ function: {
11
+ name: string;
12
+ description: string;
13
+ parameters: {
14
+ $schema: string;
15
+ type: string;
16
+ properties: {};
17
+ additionalProperties: boolean;
18
+ };
19
+ };
20
+ }[];
21
+ tool_choice: string;
22
+ };
@@ -0,0 +1,31 @@
1
+ import * as assert from "../../source/asserts.js";
2
+ export function test({ tool_calls }) {
3
+ assert.isNotNullish(tool_calls);
4
+ assert.isNotEmptyArray(tool_calls);
5
+ assert.strictEqual(tool_calls.length, 1);
6
+ assert.strictEqual(tool_calls[0].type, "function");
7
+ }
8
+ export const json = {
9
+ "messages": [
10
+ {
11
+ "role": "user",
12
+ "content": "read the todos",
13
+ },
14
+ ],
15
+ "tools": [
16
+ {
17
+ "type": "function",
18
+ "function": {
19
+ "name": "get_todo_items",
20
+ "description": "Retrieves the current list of todo items, including their names and completion statuses.",
21
+ "parameters": {
22
+ "$schema": "http://json-schema.org/draft-07/schema#",
23
+ "type": "object",
24
+ "properties": {},
25
+ "additionalProperties": false
26
+ }
27
+ }
28
+ },
29
+ ],
30
+ "tool_choice": "auto",
31
+ };
@@ -0,0 +1,209 @@
1
+ import { ChatMessage } from "../../source/chat-completion.ts";
2
+ export declare function test({ tool_calls }: ChatMessage): void;
3
+ export declare const json: {
4
+ messages: {
5
+ role: string;
6
+ content: string;
7
+ }[];
8
+ tools: ({
9
+ type: string;
10
+ function: {
11
+ name: string;
12
+ description: string;
13
+ parameters: {
14
+ type: string;
15
+ required: string[];
16
+ properties: {
17
+ filePath: {
18
+ description: string;
19
+ type: string;
20
+ };
21
+ text: {
22
+ description: string;
23
+ type: string;
24
+ };
25
+ content?: undefined;
26
+ search?: undefined;
27
+ replace?: undefined;
28
+ url?: undefined;
29
+ includeMarkup?: undefined;
30
+ dirPath?: undefined;
31
+ timeout?: undefined;
32
+ cmd?: undefined;
33
+ };
34
+ };
35
+ strict: boolean;
36
+ };
37
+ } | {
38
+ type: string;
39
+ function: {
40
+ name: string;
41
+ description: string;
42
+ parameters: {
43
+ type: string;
44
+ required: string[];
45
+ properties: {
46
+ filePath: {
47
+ description: string;
48
+ type: string;
49
+ };
50
+ content: {
51
+ description: string;
52
+ type: string;
53
+ };
54
+ text?: undefined;
55
+ search?: undefined;
56
+ replace?: undefined;
57
+ url?: undefined;
58
+ includeMarkup?: undefined;
59
+ dirPath?: undefined;
60
+ timeout?: undefined;
61
+ cmd?: undefined;
62
+ };
63
+ };
64
+ strict: boolean;
65
+ };
66
+ } | {
67
+ type: string;
68
+ function: {
69
+ name: string;
70
+ description: string;
71
+ parameters: {
72
+ type: string;
73
+ required: string[];
74
+ properties: {
75
+ filePath: {
76
+ description: string;
77
+ type: string;
78
+ };
79
+ search: {
80
+ description: string;
81
+ type: string;
82
+ };
83
+ replace: {
84
+ description: string;
85
+ type: string;
86
+ };
87
+ text?: undefined;
88
+ content?: undefined;
89
+ url?: undefined;
90
+ includeMarkup?: undefined;
91
+ dirPath?: undefined;
92
+ timeout?: undefined;
93
+ cmd?: undefined;
94
+ };
95
+ };
96
+ strict: boolean;
97
+ };
98
+ } | {
99
+ type: string;
100
+ function: {
101
+ name: string;
102
+ description: string;
103
+ parameters: {
104
+ type: string;
105
+ required: string[];
106
+ properties: {
107
+ url: {
108
+ description: string;
109
+ type: string;
110
+ };
111
+ includeMarkup: {
112
+ description: string;
113
+ type: string;
114
+ };
115
+ filePath?: undefined;
116
+ text?: undefined;
117
+ content?: undefined;
118
+ search?: undefined;
119
+ replace?: undefined;
120
+ dirPath?: undefined;
121
+ timeout?: undefined;
122
+ cmd?: undefined;
123
+ };
124
+ };
125
+ strict: boolean;
126
+ };
127
+ } | {
128
+ type: string;
129
+ function: {
130
+ name: string;
131
+ description: string;
132
+ parameters: {
133
+ type: string;
134
+ required: never[];
135
+ properties: {
136
+ dirPath: {
137
+ description: string;
138
+ type: string;
139
+ };
140
+ filePath?: undefined;
141
+ text?: undefined;
142
+ content?: undefined;
143
+ search?: undefined;
144
+ replace?: undefined;
145
+ url?: undefined;
146
+ includeMarkup?: undefined;
147
+ timeout?: undefined;
148
+ cmd?: undefined;
149
+ };
150
+ };
151
+ strict: boolean;
152
+ };
153
+ } | {
154
+ type: string;
155
+ function: {
156
+ name: string;
157
+ description: string;
158
+ parameters: {
159
+ type: string;
160
+ required: string[];
161
+ properties: {
162
+ filePath: {
163
+ description: string;
164
+ type: string;
165
+ };
166
+ text?: undefined;
167
+ content?: undefined;
168
+ search?: undefined;
169
+ replace?: undefined;
170
+ url?: undefined;
171
+ includeMarkup?: undefined;
172
+ dirPath?: undefined;
173
+ timeout?: undefined;
174
+ cmd?: undefined;
175
+ };
176
+ };
177
+ strict: boolean;
178
+ };
179
+ } | {
180
+ type: string;
181
+ function: {
182
+ name: string;
183
+ description: string;
184
+ parameters: {
185
+ type: string;
186
+ required: string[];
187
+ properties: {
188
+ timeout: {
189
+ description: string;
190
+ type: string;
191
+ };
192
+ cmd: {
193
+ description: string;
194
+ type: string;
195
+ };
196
+ filePath?: undefined;
197
+ text?: undefined;
198
+ content?: undefined;
199
+ search?: undefined;
200
+ replace?: undefined;
201
+ url?: undefined;
202
+ includeMarkup?: undefined;
203
+ dirPath?: undefined;
204
+ };
205
+ };
206
+ strict: boolean;
207
+ };
208
+ })[];
209
+ };