Create tools with long descriptions for truncation tests.
()
| 296 | |
| 297 | @pytest.fixture |
| 298 | def tools_with_long_descriptions() -> list[ToolInfo]: |
| 299 | """Create tools with long descriptions for truncation tests.""" |
| 300 | return [ |
| 301 | ToolInfo( |
| 302 | name="verbose_tool", |
| 303 | namespace="test", |
| 304 | description="A" * 250, # More than 200 chars |
| 305 | parameters={"type": "object", "properties": {}}, |
| 306 | ), |
| 307 | ] |
| 308 | |
| 309 | |
| 310 | @pytest.fixture |