# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class PersonalKnowledgeSettingsResponse(UniversalBaseModel):
    """
    Response schema for personal knowledge settings.
    """

    memories_enabled: bool = pydantic.Field()
    """
    Whether the memories feature is enabled
    """

    auto_extract_enabled: bool = pydantic.Field()
    """
    Whether automatic memory extraction from conversations is enabled
    """

    personal_knowledge_enabled: bool = pydantic.Field()
    """
    Whether personal knowledge stores are enabled
    """

    config: typing.Dict[str, typing.Any] = pydantic.Field()
    """
    Additional configuration overrides
    """

    revision: int = pydantic.Field()
    """
    Optimistic concurrency revision number
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
