fix: shorten tool call messages
This commit is contained in:
parent
794e64647d
commit
4f510ef57b
9 changed files with 19 additions and 19 deletions
|
|
@ -4,9 +4,9 @@ import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
|
|||
export const createNewFileTool: Tool = {
|
||||
type: "function",
|
||||
displayTitle: "Create New File",
|
||||
wouldLikeTo: "create a new file at {{{ filepath }}}",
|
||||
isCurrently: "creating a new file at {{{ filepath }}}",
|
||||
hasAlready: "created a new file at {{{ filepath }}}",
|
||||
wouldLikeTo: "create {{{ filepath }}}",
|
||||
isCurrently: "creating {{{ filepath }}}",
|
||||
hasAlready: "created {{{ filepath }}}",
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
readonly: false,
|
||||
isInstant: true,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export const fetchUrlContentTool: Tool = {
|
|||
displayTitle: "Read URL",
|
||||
wouldLikeTo: "fetch {{{ url }}}",
|
||||
isCurrently: "fetching {{{ url }}}",
|
||||
hasAlready: "viewed {{{ url }}}",
|
||||
hasAlready: "fetched {{{ url }}}",
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
|
|||
export const globSearchTool: Tool = {
|
||||
type: "function",
|
||||
displayTitle: "Glob File Search",
|
||||
wouldLikeTo: 'find file matches for "{{{ pattern }}}"',
|
||||
isCurrently: 'finding file matches for "{{{ pattern }}}"',
|
||||
hasAlready: 'retrieved file matches for "{{{ pattern }}}"',
|
||||
wouldLikeTo: 'search for files like "{{{ pattern }}}"',
|
||||
isCurrently: 'searching for files like "{{{ pattern }}}"',
|
||||
hasAlready: 'searched for files like "{{{ pattern }}}"',
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
|
|||
export const grepSearchTool: Tool = {
|
||||
type: "function",
|
||||
displayTitle: "Grep Search",
|
||||
wouldLikeTo: 'search for "{{{ query }}}" in the repository',
|
||||
isCurrently: 'getting search results for "{{{ query }}}"',
|
||||
hasAlready: 'retrieved search results for "{{{ query }}}"',
|
||||
wouldLikeTo: 'search for "{{{ query }}}"',
|
||||
isCurrently: 'searching for "{{{ query }}}"',
|
||||
hasAlready: 'searched for "{{{ query }}}"',
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
|
|||
export const lsTool: Tool = {
|
||||
type: "function",
|
||||
displayTitle: "ls",
|
||||
wouldLikeTo: "list files and folders in {{{ dirPath }}}",
|
||||
isCurrently: "listing files and folders in {{{ dirPath }}}",
|
||||
hasAlready: "listed files and folders in {{{ dirPath }}}",
|
||||
wouldLikeTo: "list files in {{{ dirPath }}}",
|
||||
isCurrently: "listing files in {{{ dirPath }}}",
|
||||
hasAlready: "listed files in {{{ dirPath }}}",
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export const readCurrentlyOpenFileTool: Tool = {
|
|||
displayTitle: "Read Currently Open File",
|
||||
wouldLikeTo: "read the current file",
|
||||
isCurrently: "reading the current file",
|
||||
hasAlready: "viewed the current file",
|
||||
hasAlready: "read the current file",
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export const readFileTool: Tool = {
|
|||
displayTitle: "Read File",
|
||||
wouldLikeTo: "read {{{ filepath }}}",
|
||||
isCurrently: "reading {{{ filepath }}}",
|
||||
hasAlready: "viewed {{{ filepath }}}",
|
||||
hasAlready: "read {{{ filepath }}}",
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export const readFileRangeTool: Tool = {
|
|||
isCurrently:
|
||||
"reading lines {{{ startLine }}}-{{{ endLine }}} of {{{ filepath }}}",
|
||||
hasAlready:
|
||||
"viewed lines {{{ startLine }}}-{{{ endLine }}} of {{{ filepath }}}",
|
||||
"read lines {{{ startLine }}}-{{{ endLine }}} of {{{ filepath }}}",
|
||||
readonly: true,
|
||||
isInstant: true,
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ export interface SingleFindAndReplaceArgs {
|
|||
export const singleFindAndReplaceTool: Tool = {
|
||||
type: "function",
|
||||
displayTitle: "Find and Replace",
|
||||
wouldLikeTo: "find and replace in {{{ filepath }}}",
|
||||
isCurrently: "finding and replacing in {{{ filepath }}}",
|
||||
hasAlready: "found and replaced in {{{ filepath }}}",
|
||||
wouldLikeTo: "edit {{{ filepath }}}",
|
||||
isCurrently: "editing {{{ filepath }}}",
|
||||
hasAlready: "edited {{{ filepath }}}",
|
||||
group: BUILT_IN_GROUP_NAME,
|
||||
readonly: false,
|
||||
isInstant: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue