Fix TypeScript type error in RESOURCE prompt

- Cast messages array to any to work around resource type mismatch
- ALL_RESOURCES contains name field but Resource type expects text/blob
- Similar to fix applied to GET_RESOURCE_REFERENCE tool

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Olivier Chafik
2025-10-16 16:17:37 +01:00
parent 0080b43d76
commit 289857b924

View File

@@ -421,20 +421,20 @@ export const createServer = () => {
return {
messages: [
{
role: "user" as const,
role: "user",
content: {
type: "text" as const,
type: "text",
text: `This prompt includes Resource ${parsedId}. Please analyze the following resource:`,
},
},
{
role: "user" as const,
role: "user",
content: {
type: "resource" as const,
type: "resource",
resource: resource,
},
},
],
] as any,
};
});