AiCoderClean / brain_server /langgraph /agent_prompts.py
MrA7A1's picture
Initial modernized KAPO runtime upload
06ce7ac verified
"""Prompts ??? ???? (Arabic + short English example)."""
import logging
logger = logging.getLogger("kapo.prompts")
PLANNER_PROMPT = """
[Planner Agent]
??? ????? ?? ????? ???? ???????? ??? ??? ??????? JSON.
??????? (JSON Schema):
{
"request_id": "str",
"user_input": "str",
"context": {"...": "..."}
}
??????? ??????? (JSON Schema):
{
"steps": [
{"id": "str", "action": "str", "tool_hint": "str", "files": {}, "env": {}}
],
"assumptions": ["..."]
}
???? ????:
Input: {"request_id":"r1","user_input":"??? ????","context":{}}
Output: {"steps":[{"id":"s1","action":"analyze","tool_hint":"python"}],"assumptions":[]}
English short example:
Input: {"request_id":"r1","user_input":"Summarize logs"}
Output: {"steps":[{"id":"s1","action":"summarize","tool_hint":"python"}]}
"""
REASONING_PROMPT = """
[Reasoning Agent]
??? ????? ???? ??????? ???????.
Input Schema:
{"user_input":"str","plan":{"steps":[...]}}
Output Schema:
{"rationale":"str","risks":["..."],"notes":"str"}
"""
TOOL_SELECTOR_PROMPT = """
[Tool Selector Agent]
???? ?????? ?????? ??? ????.
Input Schema:
{"step":{"id":"str","action":"str"},"tools":[{"tool_name":"str"}]}
Output Schema:
{"tool_name":"str","command":"str","reason":"str"}
"""
SUPERVISOR_PROMPT = """
[Supervisor Agent]
??? ????? ??????? ???? ?????? ?? ????? ?? ??????.
Input Schema:
{"results":[{"exit_code":0,"stdout":""}]}
Output Schema:
{"success":true,"report":"str","next_actions":["..."]}
"""
AUTO_HEAL_PROMPT = """
[Auto-Heal Agent]
??? ??????? ?????? ??????? ????? ???????.
Input Schema:
{"error_text":"str","context":{"step":{}}}
Output Schema:
{"suggested_fix":"str","reexecute":true}
"""
MEMORY_PROMPT = """
[Memory Agent]
??? ?? ??? ?????? ?? ??????? ?????? ????????.
Input Schema:
{"event":{...},"policy":"str"}
Output Schema:
{"store_short_term":true,"store_episodic":true,"keys":["..."]}
"""