diff --git a/prompts/examples/hello_world.md b/prompts/examples/hello_world.md new file mode 100644 index 0000000..1651e7a --- /dev/null +++ b/prompts/examples/hello_world.md @@ -0,0 +1,10 @@ +--- +tools: + - name: hello-world + description: A simple tool that prints "Hello, World!" to the console + container: + image: busybox:latest + command: + - echo + - "Hello, World!" +--- diff --git a/src/jsonrpc/server.clj b/src/jsonrpc/server.clj index 75a97ea..cee767e 100644 --- a/src/jsonrpc/server.clj +++ b/src/jsonrpc/server.clj @@ -91,7 +91,7 @@ :total 0 :hasMore false}}) -(defn entry->prompt-listing [k v m] +(defn entry->prompt-listing [k v _messages] (merge {:name (str k)} (select-keys (:metadata v) [:description])))