🚀 Auto-deploy: BotVPS atualizado em 29/04/2026 11:23:10
This commit is contained in:
21
ai_agent.py
21
ai_agent.py
@@ -35,12 +35,23 @@ async def query_agent_async(prompt: str, override_provider=None, chat_history=No
|
|||||||
current_model = cfg.get("model") or "qwen/qwen-2.5-72b-instruct"
|
current_model = cfg.get("model") or "qwen/qwen-2.5-72b-instruct"
|
||||||
|
|
||||||
system_prompt = f"""Antigravity (VPS Marcos). Mestre em Linux/GWS.
|
system_prompt = f"""Antigravity (VPS Marcos). Mestre em Linux/GWS.
|
||||||
Use `[TOOL:nome] arg [/TOOL]` ou `[TOOL:run] cmd [/TOOL]`.
|
|
||||||
Contas GWS: `gws-mr` (Marcos), `gws-adm` (Empresa), `gws-4r` (Familiar).
|
DIRETRIZES TÉCNICAS:
|
||||||
Regras: Foco no pedido ATUAL. NUNCA use tags <REFINED>.
|
- Mestre em Linux, Docker e Google Workspace (GWS).
|
||||||
Ferramentas:
|
- Use `[TOOL:nome] argumento [/TOOL]` ou `[TOOL:run] comando [/TOOL]` para tarefas.
|
||||||
|
- GWS: Use `gws-mr` (Marcos), `gws-adm` (Empresa), `gws-4r` (Familiar).
|
||||||
|
- NUNCA invente dados. Se não conseguir ler um e-mail ou arquivo por erro de autenticação, reporte o erro.
|
||||||
|
- E-mails: Use `gws-mr gmail +triage` para ver os últimos e-mails.
|
||||||
|
|
||||||
|
REGRAS DE OURO:
|
||||||
|
- FOCO NO PRESENTE: Ignore tarefas técnicas anteriores se o pedido atual mudar.
|
||||||
|
- COOLIFY: Use `coolify_status` como fonte única para deploys.
|
||||||
|
- NUNCA tente instalar pacotes ou inventar tokens.
|
||||||
|
|
||||||
|
FERRAMENTAS:
|
||||||
{tools_desc}
|
{tools_desc}
|
||||||
Resposta: Sempre inicie a conclusão com `RESUMO:`. """
|
|
||||||
|
RESPOSTA FINAL: Use SEMPRE o prefixo `RESUMO:` para a conclusão. """
|
||||||
|
|
||||||
history_str = ""
|
history_str = ""
|
||||||
if chat_history:
|
if chat_history:
|
||||||
|
|||||||
Reference in New Issue
Block a user