🚀 Auto-deploy: BotVPS atualizado em 28/03/2026 17:15:38

This commit is contained in:
2026-03-28 17:15:38 +00:00
parent 5a6b196ade
commit 0c25fa59d8
5 changed files with 22 additions and 11 deletions

View File

@@ -43,6 +43,10 @@ DIRETRIZES:
* Listar Drive: `[TOOL:run_bash_command] gws-adm drive files list --params '{{"pageSize": 5}}' [/TOOL]`
- Nunca responda que não tem acesso a e-mails ou arquivos externos se puder usar o GWS.
- Responda sempre em PORTUGUÊS.
- CAMINHOS DO SISTEMA:
* BotVPS / Antigravity: `/root/Apps/BotVPS` (seu código fonte)
* Repositórios: `/data/repositories/`
- Se não souber onde um arquivo está, use `run_bash_command` com `find`. NUNCA CHUTE DIRETÓRIOS.
### FERRAMENTAS DISPONÍVEIS:
{tools_desc}
@@ -60,7 +64,8 @@ DIRETRIZES:
history_str += f"\nUsuário: {prompt}\n"
current_history = history_str
for i in range(5): # Reduzido de 10 para 5 para economizar cota e evitar loops infinitos
max_iterations = 10
for i in range(max_iterations):
print(f"[AGENT] Iteração {i+1} - Enviando para {provider} (modelo padrão)...")
response = await get_llm_response_async(system_prompt + current_history, provider, cfg)
print(f"[LLM RESPONSE]: {response}")
@@ -80,6 +85,7 @@ DIRETRIZES:
else:
current_history += f"\nAgente: {response}\nSISTEMA: Erro: Ferramenta inexistente.\n"
else:
# Se não há ferramenta, terminou o pensamento.
return response
return "Limite de pensamento atingido."
return f"Limite de pensamento ({max_iterations} iterações) atingido.\nÚltima resposta: {response if 'response' in locals() else 'Nenhuma'}"