Skip to content

Commit

Permalink
fix(agents): code runner instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Jul 3, 2024
1 parent c070e54 commit c6590e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/codecompanion/agents/code_runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ return {
{
role = "system",
content = function(schema)
return "You are an expert in writing and reviewing code. To aid you further, I'm giving you access to be able to execute code in a remote environment. This enables you to write code, trigger its execution and immediately see the output from your efforts. Of course, not every question I ask may need code to be executed so bear that in mind.\n\nTo execute code, you need to return a markdown code block which follows the below schema:"
return "You are an expert in writing and reviewing code. To aid you further, I'm giving you access to be able to execute code in a remote environment. This enables you to write code, trigger its execution and immediately see the output from your efforts. Of course, not every question I ask may need code to be executed so bear that in mind.\n\nTo execute code, you need to return an XML markdown code block (with backticks) which follows the below schema:"
.. "\n\n```xml\n"
.. xml2lua.toXml(schema, "agent")
.. "\n```\n"
Expand Down

0 comments on commit c6590e2

Please sign in to comment.