(parts: SessionV1.Part[])
| 104 | } |
| 105 | |
| 106 | function errorTool(parts: SessionV1.Part[]) { |
| 107 | const part = toolPart(parts) |
| 108 | expect(part?.state.status).toBe("error") |
| 109 | return part?.state.status === "error" ? (part as ErrorToolPart) : undefined |
| 110 | } |
| 111 | |
| 112 | function makeMcp(instructions: MCP.ServerInstructions[] = []) { |
| 113 | return Layer.succeed( |
no test coverage detected