huggingface_hub
1d971b0d - [Tiny Agents] Add tools to config (#3242)

Commit
108 days ago
[Tiny Agents] Add tools to config (#3242) * Add tools to config * Simplify MCP tool filtering to use allowed_tools parameter - Replace complex include/exclude structure with simple allowed_tools list - Follow OpenAI specs for tool filtering (allowlist approach only) - Simplify _filter_tools method to use list comprehension - Update type definitions in types.py - Remove example files as requested by maintainers - Add comprehensive unit tests for allowed_tools functionality This addresses PR feedback from @julien-c and @Wauplin: - Eliminates confusion about include/exclude precedence - Aligns with industry standards (OpenAI) - Provides cleaner, simpler API 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Address comments * Update src/huggingface_hub/inference/_mcp/mcp_client.py --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Lucain <lucainp@gmail.com>
Author
Parents
Loading