feat: dallins feedback
This commit is contained in:
parent
af1d5ed3e3
commit
6070a645dd
3 changed files with 11 additions and 10 deletions
|
|
@ -12,11 +12,9 @@ export const createRuleBlock: Tool = {
|
|||
function: {
|
||||
name: BuiltInToolNames.CreateRuleBlock,
|
||||
description:
|
||||
"Creates a persistent rule block that will be applied to all future Chat, Edit and Agent conversations. " +
|
||||
"Use this tool when the user wants to establish ongoing behaviors, preferences, or standards for code generation. " +
|
||||
"This is ideal for capturing recurring preferences like 'always use named exports instead of default exports' or 'follow Google style docstrings'. " +
|
||||
"Do NOT use this tool for one-time instructions that should only apply to the current conversation. " +
|
||||
"The created rule will be formatted as a YAML file and stored in the user's `.continue/rules` directory.",
|
||||
"Creates a persistent rule that applies to all future conversations. " +
|
||||
"Use for establishing ongoing code standards or preferences (e.g. 'use named exports', 'follow Google docstrings'). " +
|
||||
"Not for one-time instructions. Rules are stored as YAML in `.continue/rules`.",
|
||||
parameters: {
|
||||
type: "object",
|
||||
required: ["rule_name", "rule_content"],
|
||||
|
|
@ -24,12 +22,12 @@ export const createRuleBlock: Tool = {
|
|||
rule_name: {
|
||||
type: "string",
|
||||
description:
|
||||
"A clear, descriptive name for the rule block that summarizes its purpose. This name will be visible in the Continue UI and should help users identify the rule's function. For example: 'React Component Standards', 'Python Type Hints', or 'Code Documentation Requirements'.",
|
||||
"Short, descriptive name summarizing the rule's purpose (e.g. 'React Standards', 'Type Hints')",
|
||||
},
|
||||
rule_content: {
|
||||
type: "string",
|
||||
description:
|
||||
"The specific instruction or standard to be followed in all future conversations. This should be a clear, concise directive written in imperative form. For example: 'Always use named exports instead of default exports in JavaScript modules', 'Always annotate Python functions with parameter and return types', or 'Use camelCase for variable names in JavaScript'. Each rule should focus on a single, well-defined behavior or standard.",
|
||||
"Clear, imperative instruction for future code generation (e.g. 'Use named exports', 'Add Python type hints'). Each rule should focus on one specific standard.",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -9,9 +9,10 @@ Agent offers the same functionality as Chat, while also including tools in the r
|
|||
|
||||
## The tool handshake
|
||||
|
||||
Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a `read_file` tool with a `filepath` argument will give the model the ability to request the contents of a specific file.
|
||||
Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a `read_file` tool with a `filepath` argument will give the model the ability to request the contents of a specific file.
|
||||
|
||||
The following handshake describes how Agent uses tools:
|
||||
|
||||
1. In Agent mode, available tools are sent along with `user` chat requests
|
||||
2. The model can choose to include a tool call in its response
|
||||
3. The user gives permission. This step is skipped if the policy for that tool is set to `Automatic`
|
||||
|
|
@ -32,7 +33,8 @@ Continue includes several built-in tools which provide the model access to IDE f
|
|||
- **Create new file** (`builtin_create_new_file`): Create a new file within the project, with path and contents specified by the model
|
||||
- **Exact search** (`builtin_exact_search`): perform a `ripgrep` search within the project
|
||||
- **Run terminal command** (`builtin_run_terminal_command`): run a terminal command from the workspace root
|
||||
- **Search web** (`builtin_search_web`): Perform a web search to get top results
|
||||
- **Search web** (`builtin_search_web`): Perform a web search to get top results
|
||||
- **View diff** (`builtin_view_diff`): View the current working git diff
|
||||
- **View repo map** (`builtin_view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](../customize/context-providers.mdx#repository-map)
|
||||
- **View subdirectory** (`builtin_view_subdirectory`): request a copy of a repo map for a specific directory within the project
|
||||
- **View subdirectory** (`builtin_view_subdirectory`): request a copy of a repo map for a specific directory within the project
|
||||
- **Create Rule Block** (`builtin_create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ export const uiSlice = createSlice({
|
|||
[BuiltInToolNames.SearchWeb]: "allowedWithoutPermission",
|
||||
[BuiltInToolNames.ViewDiff]: "allowedWithoutPermission",
|
||||
[BuiltInToolNames.LSTool]: "allowedWithoutPermission",
|
||||
[BuiltInToolNames.CreateRuleBlock]: "allowedWithPermission",
|
||||
},
|
||||
toolGroupSettings: {
|
||||
BUILT_IN_GROUP_NAME: "include",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue