Skip to content

Conversation

@lukebrady
Copy link
Owner

Add new smolagent implementation demonstrating multi-agent workflows using HuggingFace SmoLAgents framework for coordinated task execution.

Key Features:

  • Multi-agent architecture with specialized roles:
    • Music Agent: Searches for party music recommendations using DuckDuckGo
    • Menu Agent: Suggests party menus with custom tool integration
    • Schedule Agent: Calculates party preparation timeline with datetime support
    • Response Agent: Synthesizes all results into engaging narrative

Agent Implementation Details:

  • Uses CodeAgent with InferenceClientModel for HuggingFace Hub integration
  • Custom suggest_menu tool with occasion-based menu recommendations
  • DuckDuckGoSearchTool for real-time web search capabilities
  • Authorized datetime imports for schedule calculations
  • Bruce Wayne party theme for demonstration

Technical Stack:

  • smolagents>=1.21.3 for agent framework
  • huggingface-hub>=0.34.4 for model integration
  • ddgs>=9.5.5 for search functionality
  • Python 3.13+ compatibility

Project Structure:

  • main.py: Multi-agent orchestration with party planning workflow
  • pyproject.toml: UV-compatible dependency management
  • README.md: Documentation placeholder

🤖 Generated with Claude Code

lukebrady and others added 4 commits September 6, 2025 23:03
Add new smolagent implementation demonstrating multi-agent workflows using
HuggingFace SmoLAgents framework for coordinated task execution.

Key Features:
- Multi-agent architecture with specialized roles:
  - Music Agent: Searches for party music recommendations using DuckDuckGo
  - Menu Agent: Suggests party menus with custom tool integration
  - Schedule Agent: Calculates party preparation timeline with datetime support
  - Response Agent: Synthesizes all results into engaging narrative

Agent Implementation Details:
- Uses CodeAgent with InferenceClientModel for HuggingFace Hub integration
- Custom suggest_menu tool with occasion-based menu recommendations
- DuckDuckGoSearchTool for real-time web search capabilities
- Authorized datetime imports for schedule calculations
- Bruce Wayne party theme for demonstration

Technical Stack:
- smolagents>=1.21.3 for agent framework
- huggingface-hub>=0.34.4 for model integration
- ddgs>=9.5.5 for search functionality
- Python 3.13+ compatibility

Project Structure:
- main.py: Multi-agent orchestration with party planning workflow
- pyproject.toml: UV-compatible dependency management
- README.md: Documentation placeholder

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

Co-Authored-By: Claude <noreply@anthropic.com>
Add full observability stack with Langfuse and OpenTelemetry integration,
plus optimize music agent with ToolCallingAgent for better tool usage.

Instrumentation Features:
- Langfuse client integration for AI observability and analytics
- OpenInference SmoLAgents instrumentation for automatic tracing
- OpenTelemetry OTLP exporter for telemetry data collection
- Authentication validation with connection status checks

Agent Architecture Improvements:
- Music agent now uses ToolCallingAgent for optimized tool interaction
- Better separation between code-based and tool-based agent workflows
- Enhanced tool utilization for DuckDuckGo search functionality

Technical Implementation:
- Langfuse client initialization with environment-based authentication
- Automatic SmoLAgents workflow instrumentation using OpenInference
- OpenTelemetry SDK integration for standardized telemetry collection
- OTLP exporter configuration for data transmission

Dependencies Added:
- langfuse>=3.3.4: AI observability and experiment tracking
- openinference-instrumentation-smolagents>=0.1.16: Agent-specific tracing
- opentelemetry-exporter-otlp>=1.36.0: OTLP data export capabilities
- opentelemetry-sdk>=1.36.0: Core OpenTelemetry functionality

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

Co-Authored-By: Claude <noreply@anthropic.com>
@lukebrady lukebrady merged commit 40c0aca into main Sep 8, 2025
6 checks passed
@lukebrady lukebrady deleted the course/smolagents branch September 8, 2025 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant