# Description of Changes Redesign the Python AI engine to be properly agentic and make use of `pydantic-ai` instead of `langchain` for correctness and ergonomics. This should be a good foundation for us to build our AI engine on going forwards.
14 lines
313 B
Python
14 lines
313 B
Python
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
from pydantic.alias_generators import to_camel
|
|
|
|
|
|
class ApiModel(BaseModel):
|
|
model_config = ConfigDict(
|
|
alias_generator=to_camel,
|
|
extra="forbid",
|
|
validate_by_name=True,
|
|
validate_by_alias=True,
|
|
)
|