YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix issue with typing & vercal ai
Louis Beaumont364cb3a9f3b5
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsxindex 92fa64d8a..e89392538 100644--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx@@ -126,7 +126,8 @@ export function ChatList({...prevMessages,{id: nanoid(),- role: "toolCall",+ role: "tool",+ toolInvocations: e.queries,content: [{type: "function",@@ -144,7 +145,7 @@ export function ChatList({...prevMessages,{id: nanoid(),- role: "toolResult",+ role: "tool",content: [{type: "function",@@ -162,7 +163,7 @@ export function ChatList({},stream_response: {description:- "Stream the final response to the user. ALWAYS FINISH WITH THIS TOOL",+ "Stream the final response to the user. ALWAYS FINISH WITH THIS TOOL. ALWAYS FINISH WITH THIS TOOL. ALWAYS FINISH WITH THIS TOOL",parameters: z.object({response: z.string()@@ -282,12 +283,8 @@ export function ChatList({(msg.role === "assistant" && typeof msg.content === "string")) {return <ChatMessage key={index} message={msg} />;- } else if (msg.role === "toolCall") {+ } else if (msg.role === "tool") {return <FunctionCallMessage key={index} message={msg} />;- } else if (msg.role === "toolResult") {- return (- <FunctionCallMessage key={index} message={msg} isResult />- );}return null;})}diff --git a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsxindex f35af111a..7fb9bbe2a 100644--- a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx+++ b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx@@ -31,15 +31,17 @@ interface FunctionCallMessageProps {export function FunctionCallMessage({message,- isResult = false,}: FunctionCallMessageProps) {const { settings } = useSettings();const [isDialogOpen, setIsDialogOpen] = useState(false);console.log("FunctionCallMessage", message);++// @ts-ignore TODOconst toolCalls = message.content.filter((content) => !content.result);// @ts-ignore TODOconst toolResults = message.content.filter((content) => content.result);+ const isResult = toolResults && toolResults.length > 0;console.log("toolCalls", toolCalls);console.log("toolResults", toolResults);