AutoGPT/benchmark/agbenchmark/utils/dependencies
Krzysztof Czerwinski 7cb4d4a903
feat(forge, agent, benchmark): Upgrade to Pydantic v2 (#7280)
Update Pydantic dependency of `autogpt`, `forge` and `benchmark` to `^2.7`
[Pydantic Migration Guide](https://docs.pydantic.dev/2.7/migration/)

- Migrate usages of now-deprecated functions to their replacements
- Update `Field` definitions
  - Ellipsis `...` for required fields is deprecated
  - `Field` no longer supports extra `kwargs`, replace use of this feature with field metadata
- Replace `Config` class for specifying model configuration with `model_config = ConfigDict(..)`
- Removed `ModelContainer` in `BaseAgent`, component configuration dict is now directly serialized using Pydantic v2 helper functions
- Forked `agent-protocol` and updated `packages/client/python` for Pydantic v2 support: https://github.com/Significant-Gravitas/agent-protocol

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2024-07-02 20:45:32 +02:00
..
__init__.py fix typos (#7123) 2024-05-31 11:16:23 +02:00
constants.py Set up unified pre-commit + CI w/ linting + type checking & FIX EVERYTHING (#7171) 2024-05-28 05:04:21 +02:00
graphs.py Set up unified pre-commit + CI w/ linting + type checking & FIX EVERYTHING (#7171) 2024-05-28 05:04:21 +02:00
main.py feat(forge, agent, benchmark): Upgrade to Pydantic v2 (#7280) 2024-07-02 20:45:32 +02:00
util.py Set up unified pre-commit + CI w/ linting + type checking & FIX EVERYTHING (#7171) 2024-05-28 05:04:21 +02:00