mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 05:00:34 +00:00
agents rework, memory improvements and params
This commit is contained in:
parent
935fae5588
commit
49c06193c2
126 changed files with 1061 additions and 512 deletions
|
|
@ -1,9 +1,7 @@
|
|||
from datetime import datetime
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
from python.helpers.extension import Extension
|
||||
from python.helpers.mcp_handler import MCPConfig
|
||||
from agent import Agent, LoopData
|
||||
from python.helpers.localization import Localization
|
||||
|
||||
|
||||
class SystemPrompt(Extension):
|
||||
|
|
@ -27,7 +25,7 @@ def get_main_prompt(agent: Agent):
|
|||
def get_tools_prompt(agent: Agent):
|
||||
prompt = agent.read_prompt("agent.system.tools.md")
|
||||
if agent.config.chat_model.vision:
|
||||
prompt += '\n' + agent.read_prompt("agent.system.tools_vision.md")
|
||||
prompt += '\n\n' + agent.read_prompt("agent.system.tools_vision.md")
|
||||
return prompt
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue