Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mxtoai/agents/email_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from dotenv import load_dotenv

# Update imports to use proper classes from smolagents
from smolagents import Tool, ToolCallingAgent
from smolagents import Tool, CodeAgent

# Add imports for the new default tools
from smolagents.default_tools import (
Expand Down Expand Up @@ -126,12 +126,12 @@ def __init__(

def _init_agent(self):
"""
Initialize the ToolCallingAgent with Azure OpenAI.
Initialize the CodeAgent with Azure OpenAI.
"""
# Initialize the routed model with the default model group
self.routed_model = RoutedLiteLLMModel()

self.agent = ToolCallingAgent(
self.agent = CodeAgent(
model=self.routed_model,
tools=self.available_tools,
max_steps=12,
Expand Down
Loading