(contents: list[types.Content])
| 155 | |
| 156 | # Simplifies the contents into a list of (author, simplified_content) tuples. |
| 157 | def simplify_contents(contents: list[types.Content]) -> list[(str, types.Part)]: |
| 158 | return [(content.role, simplify_content(content)) for content in contents] |
| 159 | |
| 160 | |
| 161 | # Simplifies the content so it's easier to assert. |
nothing calls this directly
no test coverage detected