Prompt execution callback. Prefer the SDK's raw GetPromptResult.
Deprecated response helpers that return a CallToolResult are still accepted and converted at registration time.
async ({ code }) => ({ messages: [ { role: "user", content: { type: "text", text: `Review:\n${code}` } }, ],}) Copy
async ({ code }) => ({ messages: [ { role: "user", content: { type: "text", text: `Review:\n${code}` } }, ],})
Prompt execution callback. Prefer the SDK's raw GetPromptResult.
Deprecated response helpers that return a CallToolResult are still accepted and converted at registration time.