feat: Dallin's feedback

This commit is contained in:
Patrick Erichsen 2025-04-28 17:25:07 -07:00
parent 6a540e11d5
commit fc1ee33ed9
4 changed files with 11 additions and 7 deletions

View file

@ -13,9 +13,7 @@ export const createRuleBlock: Tool = {
function: {
name: BuiltInToolNames.CreateRuleBlock,
description:
"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`.",
"Creates a persistent rule for all future conversations. For establishing code standards or preferences that should be applied consistently.",
parameters: {
type: "object",
required: ["name", "rule"],

View file

@ -47,9 +47,13 @@ export const createRuleBlockImpl: ToolImpl = async (
return [
{
name: "Rule Block Created",
description: `Created ${args.name} rule`,
content: ruleYaml,
name: `New Rule Block`,
description: "", // No description throws an error in the GUI
uri: {
type: "file",
value: rulesDirUri,
},
content: "Rule created successfully",
},
];
};

View file

@ -20,7 +20,7 @@ To form the system message, rules are joined with new lines, in the order they a
Rules can be added to an Assistant on the Continue Hub. Explore available rules [here](https://hub.continue.dev/explore/rules), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub. These blocks are defined using the [`config.yaml` syntax](../../reference.md#rules) and can also be created locally.
:::info Automatically create local rule blocks
When in Agent mode, you can simply prompt the agent to create a rule for you.
When in Agent mode, you can simply prompt the agent to create a rule for you using the `builtin_create_rule_block` tool if enabled.
For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation.
:::

View file

@ -10,6 +10,7 @@ import {
GlobeAltIcon,
MagnifyingGlassIcon,
MapIcon,
PencilIcon,
XMarkIcon,
} from "@heroicons/react/24/outline";
import {
@ -44,6 +45,7 @@ const toolCallIcons: Record<string, ComponentType> = {
[BuiltInToolNames.ViewDiff]: CodeBracketIcon,
[BuiltInToolNames.ViewRepoMap]: MapIcon,
[BuiltInToolNames.ViewSubdirectory]: FolderOpenIcon,
[BuiltInToolNames.CreateRuleBlock]: PencilIcon,
};
export function ToolCallDiv(props: ToolCallDivProps) {