Skip to content

Commit

Permalink
Add a simple one tool example
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Dec 8, 2024
1 parent ffb476b commit b8a29e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions prompts/examples/hello_world.md
Original file line number Diff line number Diff line change
@@ -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!"
---
2 changes: 1 addition & 1 deletion src/jsonrpc/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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])))
Expand Down

0 comments on commit b8a29e4

Please sign in to comment.