Compare commits
1
Commits
65deb0e4ce
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3700b52883 |
+8
-5
@@ -66,12 +66,15 @@ SYSTEM_PROMPT = textwrap.dedent("""\
|
|||||||
When the user asks about personal information, past conversations, or
|
When the user asks about personal information, past conversations, or
|
||||||
anything you might have stored, you MUST call recall FIRST before
|
anything you might have stored, you MUST call recall FIRST before
|
||||||
answering. Do NOT say "I don't have that info" without calling recall.
|
answering. Do NOT say "I don't have that info" without calling recall.
|
||||||
|
When you call recall, ALWAYS include session_id="hope" to search the
|
||||||
|
session cache.
|
||||||
When the user tells you something to remember or shares a preference,
|
When the user tells you something to remember or shares a preference,
|
||||||
you MUST call remember. Do NOT just say "okay I'll remember that."
|
you MUST call remember with session_id="hope". Always include
|
||||||
- User says "what's my name?" → CALL recall with query="my name"
|
session_id="hope" in every remember call — this makes it instant.
|
||||||
- User says "do you remember who I am?" → CALL recall with query="user identity name"
|
- User says "what's my name?" → CALL recall with query="my name", session_id="hope"
|
||||||
|
- User says "do you remember who I am?" → CALL recall with query="user identity name", session_id="hope"
|
||||||
- User says "remember my coffee order is oat milk latte" → CALL remember
|
- User says "remember my coffee order is oat milk latte" → CALL remember
|
||||||
with data="User's coffee order is an oat milk latte"
|
with data="User's coffee order is an oat milk latte", session_id="hope"
|
||||||
- User says "forget that I like blue" → CALL forget to remove it
|
- User says "forget that I like blue" → CALL forget to remove it
|
||||||
After calling remember, confirm briefly ("Got it, I'll remember that").
|
After calling remember, confirm briefly ("Got it, I'll remember that").
|
||||||
If recall returns nothing, then say you don't have that info yet.
|
If recall returns nothing, then say you don't have that info yet.
|
||||||
@@ -169,7 +172,7 @@ class _ReasoningFallbackWrapper:
|
|||||||
self._has_content = True
|
self._has_content = True
|
||||||
tc = getattr(delta, "tool_calls", None)
|
tc = getattr(delta, "tool_calls", None)
|
||||||
if tc:
|
if tc:
|
||||||
logger.info("LLM tool_call: %s", [t.function.name for t in tc])
|
logger.info("LLM tool_call: %s", [getattr(t, "name", str(t)) for t in tc])
|
||||||
return chunk
|
return chunk
|
||||||
|
|
||||||
async def collect(self):
|
async def collect(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user