forked from florath/qwen3-call-patch-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool_fixes.yaml
More file actions
102 lines (90 loc) · 3.08 KB
/
tool_fixes.yaml
File metadata and controls
102 lines (90 loc) · 3.08 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Configuration for tool call fixes
# Each tool can have multiple fix rules applied
tools:
todowrite:
# Fix todos parameter when it's a JSON string instead of array
fixes:
- name: "todos_string_to_array"
parameter: "todos"
condition: "is_string"
action: "parse_json_array"
fallback_value: []
description: "Convert todos string to array"
bash:
# Add mandatory description parameter if missing
fixes:
- name: "missing_description"
parameter: "description"
condition: "missing_or_empty"
action: "set_default"
default_value: "Execute the given shell command"
description: "Add missing bash description"
edit:
# Fix replaceAll parameter when it's a string instead of boolean
fixes:
- name: "replace_all_string_to_boolean"
parameter: "replaceAll"
condition: "is_string"
action: "convert_string_to_boolean"
description: "Convert replaceAll string to boolean"
- name: "replace_all_string_to_boolean_alt"
parameter: "replace_all"
condition: "is_string"
action: "convert_string_to_boolean"
description: "Convert replace_all string to boolean"
multiedit:
# Ensure edits parameter is properly formatted
fixes:
- name: "edits_validation"
parameter: "edits"
condition: "is_string"
action: "parse_json_array"
fallback_value: []
description: "Convert edits string to array"
glob:
# Add default path if missing
fixes:
- name: "default_path"
parameter: "path"
condition: "missing"
action: "set_default"
default_value: "."
description: "Add default path for glob"
grep:
# Ensure output_mode has valid value
fixes:
- name: "output_mode_validation"
parameter: "output_mode"
condition: "invalid_enum"
valid_values: ["content", "files_with_matches", "count"]
action: "set_default"
default_value: "files_with_matches"
description: "Fix invalid output_mode"
task:
# Add default subagent_type if missing
fixes:
- name: "default_subagent_type"
parameter: "subagent_type"
condition: "missing"
action: "set_default"
default_value: "general-purpose"
description: "Add default subagent_type"
read:
# Fix read tool when LLM incorrectly provides content parameter
# This indicates the LLM wants to WRITE, not READ
fixes:
- name: "convert_read_with_content_to_write"
parameter: "content"
condition: "exists"
action: "convert_tool_to_write"
description: "Convert read+content to write tool (LLM means to create file, not read it)"
# Global settings
settings:
# Timeout for clearing abandoned buffers (seconds)
buffer_timeout: 120 # Increased to 2 minutes for long tool calls
# Maximum buffer size per tool call (bytes)
max_buffer_size: 1048576 # 1MB
# Enable detailed logging
detailed_logging: true
# Case sensitive tool name matching
case_sensitive_tools: false