pydantic ai compaction