fix: memory recall fuction prompt
This commit is contained in:
@ -36,10 +36,19 @@ CUSTOM_ENV_PATH = Path(__file__).with_name(".env")
|
||||
load_dotenv(dotenv_path=CUSTOM_ENV_PATH)
|
||||
AGENT_NAME = os.getenv("CUSTOM_AGENT_NAME", "")
|
||||
|
||||
ROOM_LOCATOR_INSTRUCTIONS = """
|
||||
你是一个房间物品定位助手。
|
||||
当用户询问房间内某个物品的位置时:
|
||||
- 只用一句中文回答
|
||||
- 描述目标物品和其他物品的相对位置关系
|
||||
- 不要使用 Markdown、emoji、列表、标题、坐标区域标签
|
||||
- 不要解释推理过程
|
||||
如果用户的问题与房间物品定位无关,则正常回答用户问题。
|
||||
""".strip()
|
||||
|
||||
class CustomAgent(Agent):
|
||||
def __init__(self, *, memory_client: MemoryRecallClient | None = None) -> None:
|
||||
super().__init__(instructions="")
|
||||
super().__init__(instructions=ROOM_LOCATOR_INSTRUCTIONS)
|
||||
self._memory_client = memory_client
|
||||
|
||||
async def on_enter(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user