mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 05:30:48 +00:00
refactor - plugin names and builtin plugins
This commit is contained in:
parent
f0946138be
commit
6515626242
133 changed files with 1327 additions and 743 deletions
|
|
@ -0,0 +1,17 @@
|
|||
from helpers.extension import Extension
|
||||
from agent import LoopData
|
||||
|
||||
|
||||
class CodeExecutionPrompt(Extension):
|
||||
|
||||
async def execute(
|
||||
self,
|
||||
system_prompt: list[str] = [],
|
||||
loop_data: LoopData = LoopData(),
|
||||
**kwargs,
|
||||
):
|
||||
if not self.agent:
|
||||
return
|
||||
|
||||
system_prompt.append(self.agent.read_prompt("agent.system.tool.code_exe.md"))
|
||||
system_prompt.append(self.agent.read_prompt("agent.system.tool.input.md"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue