notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit d04fc892a7d1d8fb724c798b5fadcecf6834f831
parent 8af80d7d10d7eb171e10d6a523599ce4c6582821
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 17 Apr 2025 12:53:31 -0700

dave: constrain power for now

we will focus on more specific tools instead

Diffstat:
Mcrates/notedeck_dave/src/tools.rs | 18++----------------
1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/crates/notedeck_dave/src/tools.rs b/crates/notedeck_dave/src/tools.rs @@ -151,6 +151,8 @@ pub enum ToolCallError { enum ArgType { String, Number, + + #[allow(dead_code)] Enum(Vec<&'static str>), } @@ -295,7 +297,6 @@ pub struct QueryCall { since: Option<u64>, kind: Option<u64>, until: Option<u64>, - author: Option<String>, search: Option<String>, } @@ -499,21 +500,6 @@ fn query_tool() -> Tool { "#, }, - ToolArg { - name: "author", - typ: ArgType::String, - required: false, - default: None, - description: "An author *pubkey* to constrain the query on. Can be used to search for notes from individual users. If unsure what pubkey to use, you can query for kind 0 profiles with the search argument.", - }, - - ToolArg { - name: "context", - typ: ArgType::Enum(vec!["home", "profile", "any"]), - required: false, - default: Some(Value::String("any".to_string())), - description: "The context in which the search is occuring. valid options are 'home', 'profile', 'any'", - } ] } }