Move tool use rules to top of system prompt for better results

This commit is contained in:
Saoud Rizwan
2024-10-05 19:14:38 -04:00
parent 9338f2a45f
commit 874d667ff4
4 changed files with 68 additions and 316 deletions

View File

@@ -1,16 +0,0 @@
import { Anthropic } from "@anthropic-ai/sdk"
export type ToolName =
| "write_to_file"
| "read_file"
| "list_files"
| "list_code_definition_names"
| "search_files"
| "execute_command"
| "inspect_site"
| "ask_followup_question"
| "attempt_completion"
export type Tool = Omit<Anthropic.Tool, "name"> & {
name: ToolName
}