Open
Description
Sometimes in Runner.run get this warning in console:
lib/python3.11/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings:
PydanticSerializationUnexpectedValue(Expected 9 fields but got 6: Expected `Message` - serialized value may not be as expected [input_value=Message(content='\n\n生...务执行Agent。\n'}), input_type=Message])
PydanticSerializationUnexpectedValue(Expected `StreamingChoices` - serialized value may not be as expected [input_value=Choices(finish_reason='st...ider_specific_fields={}), input_type=Choices])
return self.__pydantic_serializer__.to_python(
Debug information
- Agents SDK version:
v0.0.17
- Python 3.11
- pydantic 2.11.7
Input for Runner.run
- str
- [{"role": "user", "content": "What state is it in?"}]
LLM Model
- deepseek/deepseek-chat
- volcengine/doubao-1-5-thinking-pro-250415