Commit graph

2 commits

Author SHA1 Message Date
pre-commit-ci[bot]
47c68f06f2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-09-30 14:03:43 +00:00
hjc-puro
dddfb30c5b Fix smolagents ChatMessage compatibility and improve documentation
This commit fixes compatibility issues with smolagents 1.22.0 ChatMessage
objects and improves the documentation for easier setup.

Changes:
- Fix smolagents_model.py to handle ChatMessage objects (not just dicts)
  in _extract_user_message() and _format_chat_messages()
- Fix smolagents_env.py to handle ChatMessage objects in trajectory
  scoring and data group creation
- Update README.md with clearer installation instructions, Quick Start
  section, and automatic GAIA dataset download documentation
- Add test_run.sh script for easy testing with OpenAI models

Tested with:
- smolagents 1.22.0
- gpt-4o-mini via OpenAI API
- Tavily web search tools
- Automatic GAIA dataset download

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 21:27:52 +00:00