Skip to content

Commit b8a29e4

Browse files
Add a simple one tool example
1 parent ffb476b commit b8a29e4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

prompts/examples/hello_world.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
tools:
3+
- name: hello-world
4+
description: A simple tool that prints "Hello, World!" to the console
5+
container:
6+
image: busybox:latest
7+
command:
8+
- echo
9+
- "Hello, World!"
10+
---

src/jsonrpc/server.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
:total 0
9292
:hasMore false}})
9393

94-
(defn entry->prompt-listing [k v m]
94+
(defn entry->prompt-listing [k v _messages]
9595
(merge
9696
{:name (str k)}
9797
(select-keys (:metadata v) [:description])))

0 commit comments

Comments
 (0)