Fix message attribute access after replacing dict with dataclass by albertvillanova · Pull Request #1534 · huggingface/smolagents (original) (raw)
Navigation Menu
Appearance settings
- AI CODE CREATION
* GitHub CopilotWrite better code with AI
* GitHub SparkBuild and deploy intelligent apps
* GitHub ModelsManage and compare prompts
* MCP RegistryNewIntegrate external tools - DEVELOPER WORKFLOWS
* ActionsAutomate any workflow
* CodespacesInstant dev environments
* IssuesPlan and track work
* Code ReviewManage code changes - APPLICATION SECURITY
* GitHub Advanced SecurityFind and fix vulnerabilities
* Code securitySecure your code as you build
* Secret protectionStop leaks before they start - EXPLORE
* Why GitHub
* Documentation
* Blog
* Changelog
* Marketplace
- AI CODE CREATION
- BY COMPANY SIZE
* Enterprises
* Small and medium teams
* Startups
* Nonprofits - BY USE CASE
* App Modernization
* DevSecOps
* DevOps
* CI/CD
* View all use cases - BY INDUSTRY
* Healthcare
* Financial services
* Manufacturing
* Government
* View all industries
- BY COMPANY SIZE
- EXPLORE BY TOPIC
* AI
* Software Development
* DevOps
* Security
* View all topics - EXPLORE BY TYPE
* Customer stories
* Events & webinars
* Ebooks & reports
* Business insights
* GitHub Skills - SUPPORT & SERVICES
* Documentation
* Customer support
* Community forum
* Trust center
* Partners
- EXPLORE BY TOPIC
- COMMUNITY
* GitHub SponsorsFund open source developers - PROGRAMS
* Security Lab
* Maintainer Community
* Accelerator
* GitHub Stars
* Archive Program - REPOSITORIES
* Topics
* Trending
* Collections
- COMMUNITY
- Pricing
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
huggingface / smolagents Public
Notifications You must be signed in to change notification settings
Additional navigation options
Merged
albertvillanova merged 1 commit intohuggingface:mainfrom
albertvillanova:fix-1449-fu-1533
Jul 8, 2025
ConversationCommits (1)ChecksFiles changed
Merged
Fix message attribute access after replacing dict with dataclass#1534
albertvillanova merged 1 commit intohuggingface:mainfrom
albertvillanova:fix-1449-fu-1533
Conversation
Copy link Copy Markdown
Member
albertvillanova commented
Fix message attribute access after replacing dict with dataclass.
Fix bug introduced after the replacement of Message (TypedDict) with ChatMessage (dataclass), done in:
Related to:
[Fix message attribute access after replacing dict with dataclass](/huggingface/smolagents/pull/1534/commits/e5a60b0e4bfb278978cce687634495682c9faa1a "Fix message attribute access after replacing dict with dataclass")
[e5a60b0](/huggingface/smolagents/pull/1534/commits/e5a60b0e4bfb278978cce687634495682c9faa1a)
aymeric-roucher approved these changes Jul 8, 2025
Copy link Copy Markdown
Collaborator
aymeric-roucher left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @albertvillanova !
albertvillanova reacted with thumbs up emoji
albertvillanova merged commit 824ce4a into huggingface:main
3 checks passed
albertvillanova deleted the fix-1449-fu-1533 branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Sign up for free to join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
aymeric-roucher aymeric-roucher approved these changes
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.