The result blocks of server tools and MCP tools in the unions of content blocks.
(*unions: Any)
| 8287 | |
| 8288 | |
| 8289 | def result_blocks(*unions: Any) -> list[Any]: |
| 8290 | """The result blocks of server tools and MCP tools in the unions of content blocks.""" |
| 8291 | return [ |
| 8292 | member |
| 8293 | for union in unions |
| 8294 | for member in union_members(union) |
| 8295 | if any(name.endswith("_tool_result") and name != "tool_result" for name in type_names(member)) |
| 8296 | ] |
| 8297 | |
| 8298 | |
| 8299 | USAGE_FIELDS_RECORDED = { |
no test coverage detected