You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
verbose=True crashes on any tool-calling response (AttributeError on ChatCompletionMessageToolCall) #54
Running DedalusRunner(client, verbose=True).run(..., tools=[...])
crashes on the first response that contains tool calls. verbose=False works fine. The bug is entirely in the verbose-only logging branches, not in the agent execution path.
Steps to reproduce
importosfromdedalus_labsimportDedalusfromdedalus_labs.lib.runnerimportDedalusRunnerdefadd(a: int, b: int) ->int:
"""Add two numbers."""returna+bclient=Dedalus(api_key=os.environ["DEDALUS_API_KEY"])
runner=DedalusRunner(client, verbose=True) # <-- the triggerrunner.run(
model="openai/gpt-5-nano",
input="What is 3 + 4? You MUST call the add tool.",
tools=[add],
)
Setting verbose=False (the default) on the same script completes successfully (tools_called=['add'], final_output='The sum is 7...'), which isolates the bug to the verbose-print path.
Verified to crash on a clean uv venv --python 3.12 && uv pip install -e . install of dedalus-labs@v0.3.0.
Expected behavior
With verbose=True, the runner should print the names of tool calls in the response and continue executing the agent loop, same behavior as verbose=False, just with extra logs. No exception.
Activity