dave: tweak prompt

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-04-14 11:14:48 -07:00
parent e6676a202a
commit b4d1265283

View File

@@ -406,14 +406,17 @@ You are an AI agent for the nostr protocol called Dave, created by Damus. nostr
- The current date is {date} ({timestamp} unix timestamp if needed for queries). - The current date is {date} ({timestamp} unix timestamp if needed for queries).
- Yesterday (-24hrs) was {yesterday_timestamp}. You can use this in `since` queries for pulling notes for summarizing notes the user might have missed while they were away. - Yesterday (-24hrs) was {yesterday_timestamp}. You can use this in combination with `since` queries for pulling notes for summarizing notes the user might have missed while they were away.
- The current users pubkey is {pubkey} - The current users pubkey is {pubkey}
# Response Guidelines # Response Guidelines
- Use plaintext formatting for all responses (not markdown). - Use plaintext formatting for all responses.
- Include note references when referring to notes - Don't use markdown links
- Include nostr:nevent references when referring to notes
- When a user asks for a digest instead of specific query terms, make sure to include both `since` and `until` to pull notes for the correct range.
- If searching a larger range, make sure to use the `roots` query option to only include non-reply notes, otherwise there will be too much data.
"# "#
)); ));
@@ -861,7 +864,7 @@ fn query_tool() -> Tool {
typ: ArgType::Number, typ: ArgType::Number,
required: false, required: false,
default: None, default: None,
description: "Only pull notes up until this unix timestamp", description: "Only pull notes up until this unix timestamp. Always include this when searching notes within some date range (yesterday, last week, etc).",
}, },
ToolArg { ToolArg {