Add core Python agent with configuration management, environment setup, and deployment documentation. Includes user/agent profiles, startup scripts, and dependency management for the psagentia system.
18 lines
491 B
Python
Executable File
18 lines
491 B
Python
Executable File
from typing import Any
|
|
from typing_extensions import ClassVar
|
|
|
|
import pydantic
|
|
|
|
from .. import _models
|
|
from .._compat import PYDANTIC_V2, ConfigDict
|
|
|
|
|
|
class BaseModel(_models.BaseModel):
|
|
if PYDANTIC_V2:
|
|
model_config: ClassVar[ConfigDict] = ConfigDict(extra="ignore", arbitrary_types_allowed=True)
|
|
else:
|
|
|
|
class Config(pydantic.BaseConfig): # type: ignore
|
|
extra: Any = pydantic.Extra.ignore # type: ignore
|
|
arbitrary_types_allowed: bool = True
|