make prompts pass args

This commit is contained in:
Ashwin Bhat 2024-10-08 14:54:56 -07:00
commit 88df0cd453
No known key found for this signature in database

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 = () => {