After I upgraded the agent from the Rasa Tutorial to Rasa Pro 3.22.2, its first message printed a block of pydantic UserWarning lines in Terminal. The first one says:
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Items 'device_code', 'user_code', 'verification_uri' on TypedDict class '_DeviceCode' are using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
warnings.warn(
Here’s where the warnings come from, why they don’t affect your agent, and what to do about them.
What I Was Doing
I was following Rasa Tutorial — Part 12: The Runtime Loop: How Mantle Handles a Turn on Rasa Pro 3.22.2 with Claude Sonnet 5.5. I started the agent with rasa inspect and sent its first message, Is there a branch in Riverton?, in the Rasa Inspector.
What I Expected
The usual log lines for a turn in Terminal and an answer in the Inspector, as on Rasa Pro 3.22.0.
What I Got
The agent answered as usual, but Terminal printed 13 UserWarning lines during the first call to Claude, each followed by warnings.warn(:

All 13 warnings, as printed:
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Items 'device_code', 'user_code', 'verification_uri' on TypedDict class '_DeviceCode' are using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Items 'access_token', 'error' on TypedDict class '_AccessTokenPoll' are using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Items 'token', 'expires_at', 'endpoints' on TypedDict class '_CopilotTokenPayload' are using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Items 'device_code', 'user_code', 'verification_uri', 'expires_in', 'interval' on TypedDict class '_DeviceCodePayload' are using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Items 'access_token', 'error', 'error_description', 'interval' on TypedDict class '_AccessTokenPollPayload' are using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'login' on TypedDict class '_GithubUserPayload' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'api' on TypedDict class '_CopilotEndpointsPayload' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'index' on TypedDict class 'ChatCompletionThinkingBlock' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'index' on TypedDict class 'ChatCompletionRedactedThinkingBlock' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'summary' on TypedDict class 'ChatCompletionReasoningItem' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'index' on TypedDict class 'ChatCompletionThinkingBlock' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'index' on TypedDict class 'ChatCompletionRedactedThinkingBlock' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
/Users/user/my-rasa-agent/.venv/lib/python3.14/site-packages/pydantic/_internal/_generate_schema.py:1574: UserWarning: Item 'summary' on TypedDict class 'ChatCompletionReasoningItem' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.
The next messages printed none of them.
What I Checked
- Rasa Pro’s changelog (opens in a new tab) for 3.22.2: it moved to litellm 1.108.13, the library Rasa uses to call Claude and other LLMs.
- Where the class names come from: seven warnings name
TypedDictclasses in litellm’s GitHub Copilot sign-in code (opens in a new tab), such as_DeviceCode, and six name litellm’s own chat-message types (opens in a new tab), such asChatCompletionThinkingBlock. Each marks some itemsReadOnly, and litellm builds pydantic checkers for these classes when their code loads. - Why an agent that uses Claude loads it: litellm 1.108.13 imports its GitHub Copilot module on every request, whichever LLM provider the request is for (litellm’s
utils.py(opens in a new tab)). - What the warning means: pydantic’s schema code (opens in a new tab) warns whenever a
TypedDictmarks itemsReadOnly, because pydantic doesn’t stop anyone from changing those items in a dictionary. - Whether a newer litellm changes it: litellm’s newest release, v1.111.0 (opens in a new tab), still marks those items
ReadOnlyand still imports the GitHub Copilot module on every request. And Rasa Pro 3.22.2 requires exactly litellm 1.108.13.
Why It Happens
Rasa Pro 3.22.2 calls Claude through litellm 1.108.13. On the first request, litellm loads its GitHub Copilot sign-in code, even though your agent doesn’t use GitHub Copilot, and builds pydantic checkers for its own chat-message types. Both describe their data with TypedDict classes that mark some items ReadOnly, and pydantic prints one warning for each class to say it won’t protect those items from changes.
Python loads a module only once per run, so the warnings appear once each time you start the agent, on its first call to Claude. UserWarning is Python’s category for warnings like this one: a note for developers, not an error (Python’s warnings module (opens in a new tab)).
The Fix
There’s nothing to change in your project. The warnings are about how litellm’s own code is written, not about your agent, and they don’t change how your agent works.
Don’t edit files inside .venv, and don’t change litellm’s version on its own: Rasa Pro 3.22.2 requires litellm 1.108.13, and reinstalling would replace any edit anyway.
After the Fix
With nothing changed, the agent answered the first message, and the next message in the same run printed only its usual log lines:

The warnings come back only when you start the agent again, on its first call to Claude.
Common Mistakes
| Mistake | Do this instead |
|---|---|
| Taking the warnings for a failed upgrade | Look below them: the turn completes and the agent answers. |
| Going back to Rasa Pro 3.22.0 to avoid them | Stay on 3.22.2. It’s a security release that fixes advisories in packages Rasa uses. |
Editing litellm’s or pydantic’s files inside .venv | Leave them as they are. Reinstalling replaces them anyway. |
| Upgrading litellm on its own | Rasa Pro 3.22.2 requires litellm 1.108.13, and the newest litellm has the same code. |
Troubleshooting
| Problem | Fix |
|---|---|
| The warnings appear again after you restart the agent | That’s expected: they print once each time the agent starts, on its first call to Claude. |
You also see Unknown model name 'claude-sonnet-5-5' | That warning is harmless too: why Rasa prints it. |
FAQ
Is the ReadOnly warning dangerous?
No. It only says that pydantic won’t enforce read-only items in some of litellm’s data types. Your agent answers as usual.
Does my agent use GitHub Copilot?
No. litellm 1.108.13 loads its GitHub Copilot module for every request, whichever provider you use. Your agent still sends its requests to Claude.
Why do I see it only once?
Python loads each module once per run, and litellm builds each pydantic checker once. The warnings appear while that happens, on the agent’s first call to Claude.
Conclusion
The ReadOnly qualifier warnings in Rasa Pro 3.22.2 come from litellm 1.108.13: from its GitHub Copilot code, which it loads on the first request, and from its own chat-message types. They don’t affect your agent, so there’s nothing to fix in your project: leave the warnings, and leave the packages Rasa installs as they are.
Additional Resources
- Rasa Pro changelog (opens in a new tab) (Rasa docs)
- litellm 1.108.13: GitHub Copilot authenticator (opens in a new tab) (litellm on GitHub)
- litellm 1.108.13:
utils.py(opens in a new tab) (litellm on GitHub) - litellm 1.108.13: chat-message types (opens in a new tab) (litellm on GitHub)
- pydantic 2.14.4:
_generate_schema.py(opens in a new tab) (pydantic on GitHub) - warnings: Warning control (opens in a new tab) (Python docs)
Related
- Rasa Tutorial — Part 12: The Runtime Loop: How Mantle Handles a Turn
- Rasa Tutorial — Part 2: Create Your First Mantle Agent, where your agent first calls Claude
- Fixed: “Unknown model name ‘claude-sonnet-5-5’, using ‘cl100k_base’ encoding as fallback” in Rasa
- Fixed: “SyntaxWarning: ‘return’ in a ‘finally’ block” in Rasa Pro on Python 3.14
- Rasa Tutorial for Beginners: Mastering Rasa Pro in Python, with every part of the series
Rasa, Claude, GitHub Copilot and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by Rasa Technologies, Anthropic or GitHub.
0 comments