make prompts pass args

This commit is contained in:
Ashwin Bhat
2024-10-08 14:54:56 -07:00
parent 0c66e16dda
commit 88df0cd453
4 changed files with 65 additions and 23 deletions

View File

@@ -145,8 +145,8 @@ const App = () => {
sendWebSocketMessage({ type: "listPrompts" });
};
const getPrompt = (name: string) => {
sendWebSocketMessage({ type: "getPrompt", name });
const getPrompt = (name: string, args: Record<string, unknown> = {}) => {
sendWebSocketMessage({ type: "getPrompt", name, args });
};
const listTools = () => {