You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ Available options:
105
105
-`-p, --provider <PROVIDER>`: LLM provider to use [ai-core, anthropic, open-ai, ollama, vertex, open-router] (default: anthropic)
106
106
-`-m, --model <MODEL>`: Model name to use (provider-specific defaults: anthropic="claude-sonnet-4-20250514", open-ai="gpt-4o", vertex="gemini-2.5-pro-preview-06-05", open-router="anthropic/claude-3-7-sonnet", ollama=required)
107
107
-`--base-url <BASE_URL>`: API base URL for the LLM provider to use
108
-
-`--tools-type <TOOLS_TYPE>`: Type of tool declaration [native, xml] (default: xml) - `native` = tools via API, `xml` = custom system message
108
+
-`--tool-syntax <TOOL_SYNTAX>`: Tool invocation syntax [native, xml, caret] (default: xml) - `native` = tools via API, `xml` = custom system message with XML tags, `caret` = custom system message with triple-caret blocks
109
109
-`--num-ctx <NUM_CTX>`: Context window size in tokens (default: 8192, only relevant for Ollama)
110
110
-`--record <RECORD>`: Record API responses to a file (only supported for Anthropic provider currently)
111
111
-`--playback <PLAYBACK>`: Play back a recorded session from a file
@@ -162,6 +162,9 @@ Available options:
162
162
This section is not really a roadmap, as the items are in no particular order.
163
163
Below are some topics that are likely the next focus.
164
164
165
+
-**Block Replacing in Changed Files**: When streaming a tool use block, we already know the LLM attempts to use `replace_in_file` and we know in which file quite early.
166
+
If we also know this file has changed since the LLM last read it, we can block the attempt with an appropriate error message.
167
+
-**Compact Tool Use Failures**: When the LLM produces an invalid tool call, or a mismatching search block, we should be able to strip the failed attempt from the message history, saving tokens.
165
168
-**Improve UI**: There are various ways in which the UI can be improved.
166
169
-**Add Memory Tools**: Add tools that facilitate building up a knowledge base useful work working in a given project.
167
170
-**Security**: Ideally, the execution for all tools would run in some sort of sandbox that restricts access to the files in the project tracked by git.
Copy file name to clipboardExpand all lines: crates/code_assistant/resources/system_message_tools.md
+1-21Lines changed: 1 addition & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,27 +20,7 @@ TOOL USE
20
20
21
21
You have access to a set of tools. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.
22
22
23
-
# Tool Use Formatting
24
-
25
-
Tool use is formatted using XML-style tags. The tool name is prefixed by 'tool:' and enclosed in opening and closing tags, and each parameter is similarly prefixed with 'param:' and enclosed within its own set of tags. Here's the structure:
0 commit comments