Skip to content

Commit f0efe4b

Browse files
Mark-Htheboxer
authored andcommitted
fix(EditChunk): correct prompt description to refer to editing a chunk instead of creating one
1 parent 09a8734 commit f0efe4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/components/modai/src/Tools/EditChunk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function getSuggestedName(): string
1616

1717
public static function getPrompt(): string
1818
{
19-
return "Edits an existing Chunk, which is a reusable piece of HTML or other code that can be inserted into pages, templates, or other elements. Use when explicitly asked to create a chunk or when creating templates to break up reusable pieces. Get the current content to edit using the get_chunks tool. Chunks can be used by adding [[\$name_of_chunk]] in a template or elsewhere. ALWAYS ask for explicit user confirmation with the chunk name, description, and category name in a separate message BEFORE calling this function.";
19+
return "Edits an existing Chunk, which is a reusable piece of HTML or other code that can be inserted into pages, templates, or other elements. Use when explicitly asked to edit a chunk or when creating templates to break up reusable pieces. Get the current content to edit using the get_chunks tool. Chunks can be used by adding [[\$name_of_chunk]] in a template or elsewhere. ALWAYS ask for explicit user confirmation with the chunk name, description, and category name in a separate message BEFORE calling this function.";
2020
}
2121

2222
public static function getParameters(): array

0 commit comments

Comments
 (0)