updated genaiscript files
This commit is contained in:
Родитель
2307d28737
Коммит
9416442fbc
|
@ -65,37 +65,9 @@ interface PromptLike extends PromptDefinition {
|
||||||
text?: string
|
text?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type SystemPromptId =
|
type SystemPromptId = "system" | "system.annotations" | "system.changelog" | "system.diff" | "system.explanations" | "system.files" | "system.files_schema" | "system.fs_find_files" | "system.fs_read_file" | "system.fs_read_summary" | "system.functions" | "system.math" | "system.python" | "system.retrieval_fuzz_search" | "system.retrieval_vector_search" | "system.retrieval_web_search" | "system.schema" | "system.tasks" | "system.technical" | "system.typescript" | "system.zero_shot_cot"
|
||||||
| "system"
|
|
||||||
| "system.annotations"
|
|
||||||
| "system.changelog"
|
|
||||||
| "system.diff"
|
|
||||||
| "system.explanations"
|
|
||||||
| "system.files"
|
|
||||||
| "system.files_schema"
|
|
||||||
| "system.fs_find_files"
|
|
||||||
| "system.fs_read_file"
|
|
||||||
| "system.fs_read_summary"
|
|
||||||
| "system.functions"
|
|
||||||
| "system.math"
|
|
||||||
| "system.python"
|
|
||||||
| "system.retrieval_fuzz_search"
|
|
||||||
| "system.retrieval_vector_search"
|
|
||||||
| "system.retrieval_web_search"
|
|
||||||
| "system.schema"
|
|
||||||
| "system.tasks"
|
|
||||||
| "system.technical"
|
|
||||||
| "system.typescript"
|
|
||||||
| "system.zero_shot_cot"
|
|
||||||
|
|
||||||
type SystemToolId =
|
type SystemToolId = "fs_find_files" | "fs_read_file" | "fs_read_summary" | "math_eval" | "retrieval_fuzz_search" | "retrieval_vector_search" | "retrieval_web_search"
|
||||||
| "fs_find_files"
|
|
||||||
| "fs_read_file"
|
|
||||||
| "fs_read_summary"
|
|
||||||
| "math_eval"
|
|
||||||
| "retrieval_fuzz_search"
|
|
||||||
| "retrieval_vector_search"
|
|
||||||
| "retrieval_web_search"
|
|
||||||
|
|
||||||
type FileMergeHandler = (
|
type FileMergeHandler = (
|
||||||
filename: string,
|
filename: string,
|
||||||
|
@ -220,45 +192,45 @@ interface ScriptRuntimeOptions {
|
||||||
/**
|
/**
|
||||||
* List of system script ids used by the prompt.
|
* List of system script ids used by the prompt.
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* System prompt identifiers ([reference](https://microsoft.github.io/genaiscript/reference/scripts/system/))
|
* System prompt identifiers ([reference](https://microsoft.github.io/genaiscript/reference/scripts/system/))
|
||||||
* - `system`: Base system prompt
|
* - `system`: Base system prompt
|
||||||
* - `system.annotations`: Emits annotations compatible with GitHub Actions
|
* - `system.annotations`: Emits annotations compatible with GitHub Actions
|
||||||
* - `system.changelog`: Generate changelog formatter edits
|
* - `system.changelog`: Generate changelog formatter edits
|
||||||
* - `system.diff`: Generates concise file diffs.
|
* - `system.diff`: Generates concise file diffs.
|
||||||
* - `system.explanations`: Explain your answers
|
* - `system.explanations`: Explain your answers
|
||||||
* - `system.files`: File generation
|
* - `system.files`: File generation
|
||||||
* - `system.files_schema`: Apply JSON schemas to generated data.
|
* - `system.files_schema`: Apply JSON schemas to generated data.
|
||||||
* - `system.fs_find_files`: File Find Files
|
* - `system.fs_find_files`: File Find Files
|
||||||
* - `system.fs_read_file`: File Read File
|
* - `system.fs_read_file`: File Read File
|
||||||
* - `system.fs_read_summary`: File Read Summary
|
* - `system.fs_read_summary`: File Read Summary
|
||||||
* - `system.functions`: use functions
|
* - `system.functions`: use functions
|
||||||
* - `system.math`: Math expression evaluator
|
* - `system.math`: Math expression evaluator
|
||||||
* - `system.python`: Expert at generating and understanding Python code.
|
* - `system.python`: Expert at generating and understanding Python code.
|
||||||
* - `system.retrieval_fuzz_search`: Full Text Fuzzy Search
|
* - `system.retrieval_fuzz_search`: Full Text Fuzzy Search
|
||||||
* - `system.retrieval_vector_search`: Embeddings Vector Search
|
* - `system.retrieval_vector_search`: Embeddings Vector Search
|
||||||
* - `system.retrieval_web_search`: Web Search
|
* - `system.retrieval_web_search`: Web Search
|
||||||
* - `system.schema`: JSON Schema support
|
* - `system.schema`: JSON Schema support
|
||||||
* - `system.tasks`: Generates tasks
|
* - `system.tasks`: Generates tasks
|
||||||
* - `system.technical`: Technical Writer
|
* - `system.technical`: Technical Writer
|
||||||
* - `system.typescript`: Export TypeScript Developer
|
* - `system.typescript`: Export TypeScript Developer
|
||||||
* - `system.zero_shot_cot`: Zero-shot Chain Of Though
|
* - `system.zero_shot_cot`: Zero-shot Chain Of Though
|
||||||
**/
|
**/
|
||||||
system?: SystemPromptId[]
|
system?: SystemPromptId[]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of tools used by the prompt.
|
* List of tools used by the prompt.
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* System tool identifiers ([reference](https://microsoft.github.io/genaiscript/reference/scripts/tools/))
|
* System tool identifiers ([reference](https://microsoft.github.io/genaiscript/reference/scripts/tools/))
|
||||||
* - `fs_find_files`: Finds file matching a glob pattern.
|
* - `fs_find_files`: Finds file matching a glob pattern.
|
||||||
* - `fs_read_file`: Reads a file as text from the file system.
|
* - `fs_read_file`: Reads a file as text from the file system.
|
||||||
* - `fs_read_summary`: Reads a summary of a file from the file system.
|
* - `fs_read_summary`: Reads a summary of a file from the file system.
|
||||||
* - `math_eval`: Evaluates a math expression
|
* - `math_eval`: Evaluates a math expression
|
||||||
* - `retrieval_fuzz_search`: Search for keywords using the full text of files and a fuzzy distance.
|
* - `retrieval_fuzz_search`: Search for keywords using the full text of files and a fuzzy distance.
|
||||||
* - `retrieval_vector_search`: Search files using embeddings and similarity distance.
|
* - `retrieval_vector_search`: Search files using embeddings and similarity distance.
|
||||||
* - `retrieval_web_search`: Search the web for a user query using Bing Search.
|
* - `retrieval_web_search`: Search the web for a user query using Bing Search.
|
||||||
**/
|
**/
|
||||||
tools?: SystemToolId[]
|
tools?: SystemToolId[]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1677,6 +1649,8 @@ interface PromptContext extends ChatGenerationContext {
|
||||||
host: PromptHost
|
host: PromptHost
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// keep in sync with PromptContext!
|
// keep in sync with PromptContext!
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"*.js",
|
"*.js",
|
||||||
"*.mjs",
|
|
||||||
"./genaiscript.d.ts"
|
"./genaiscript.d.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче