Skip to content

Conversation

@soumik12345
Copy link
Contributor

Description

This PR handles the case where the dictify function fails for certain smolagents objects.

Testing

This PR was tested using the following snippet:

import weave
from smolagents import DuckDuckGoSearchTool, OpenAIServerModel, ToolCallingAgent

# Initialize Weave
weave.init(project_name="smolagents")

# Define your LLM provider supported by Smolagents
model = OpenAIServerModel(model_id="gpt-4o")

# Define a DuckDuckGo web search tool based on your query
search_tool = DuckDuckGoSearchTool()

# Define a tool-calling agent
agent = ToolCallingAgent(tools=[search_tool], model=model)
answer = agent.run(
    "Get me just the title of the page at url 'https://wandb.ai/geekyrakshit/story-illustration/reports/Building-a-GenAI-assisted-automatic-story-illustrator--Vmlldzo5MTYxNTkw'?"
)

@soumik12345 soumik12345 requested a review from a team as a code owner December 24, 2025 08:32
@wandbot-3000
Copy link

wandbot-3000 bot commented Dec 24, 2025

This PR requires manual approval from a wandb user to run all CI checks.

To see the current diff, click here.

To approve CI for this PR as of this commit, comment:

/approve 45e4261f14c759d59c168bc95909799b98d32d50

@soumik12345 soumik12345 changed the title fix: dictification issue in the smolagents integration fix(weave): dictification issue in the smolagents integration Dec 24, 2025
@wandbot-3000
Copy link

wandbot-3000 bot commented Dec 24, 2025

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