Lib\site-packages\pydantic\_internal\_generate_sch...
# ask-ai
f
Lib\site-packages\pydantic\_internal\_generate_schema.py", line 639, in _unknown_type_schema raise PydanticSchemaGenerationError( pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'livekit.agents.llm.chat_context.ChatContext'>. Set
arbitrary_types_allowed=True
in the model_config to ignore this error or implement
__get_pydantic_core_schema__
on your type to fully support it. If you got this error by calling handler(<some type>) within
__get_pydantic_core_schema__
then you likely need to call
handler.generate_schema(<some type>)
since we do not call
__get_pydantic_core_schema__
on
<some type>
otherwise to avoid infinite recursion.
t
Thanks for reaching out, jitendra. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you provide more details about the context in which this error occurred? For example: • What specific operation or function were you trying to perform when this error appeared? • Are you using a custom implementation or modifying the LiveKit codebase? • What version of Pydantic and LiveKit are you using?