Choose how to run this agent
Download Agent
Choose how you want to use this agent:
Use Security Settings Key (Recommended)
Use the API key you've already saved in Security Settings. Quick and convenient!
- No need to re-enter API key
- Works offline after download
- Centralized key management
No API key found in Security Settings. Add one now
Enter API Key Manually
Enter your API key now for this specific agent download.
- Use different key for this agent
- One-time use (not saved)
- Works offline after download
Configure Agent Encryption
Description
Based on the Помощник по неясным сообщениям template.
What this agent can do
My Помощник по неясным сообщениям is built from the Помощник по неясным сообщениям template. Runs fully on your own device: llama.cpp compiled to WebAssembly, GPU-accelerated through WebGPU, with no API key and no server. After the one-time model download it works offline. Can run on OpenAI models with your own API key, encrypted in your browser. Can run on Anthropic Claude models with your own API key, encrypted in your browser.
Source Code
_dialogue = []
async def process_user_query(query: str) -> str:
"""Clarify an unclear Russian message and continue the conversation.
Args:
query: The user's current message.
"""
text = query.strip()[:3000]
if not text:
return "Напишите сообщение — я помогу его разобрать."
history = "\n".join(f"{role}: {message}" for role, message in _dialogue[-8:])
prompt = ("История беседы:\n" + (history or "(пока нет)") +
"\nПользователь: " + text +
"\nОтветь пользователю по-русски. Если смысл непонятен, не угадывай уверенно: "
"коротко уточни, что он имел в виду.")
answer = await agentop_llm.generate(prompt[:6000], globals().get("TEMPLATE_SYSTEM_PROMPT", ""))
response = str(answer).strip()
_dialogue.extend([("Пользователь", text[:600]), ("Помощник", response[:900])])
del _dialogue[:-8]
return response