Skip to content

[BUG] Tool calling fails #1287

@tsterbak

Description

@tsterbak

Quick Summary

Whenever a tool is called it failes:
"""agent: LLM call failed {agent_id=main, iteration=1, error=failed to parse JSON response: failed to decode response: json: cannot unmarshal object into Go struct field .choices.message.tool_calls.function.arguments of type string}"""

Environment & Tools

  • PicoClaw Version: v0.2.1
  • AI Model & Provider: llama.cpp Qwen3.5-35B, configured as openai integration
  • Operating System: RaspberryOS
  • Channels: Telegram

📸 Steps to Reproduce

  1. Ask for the weather
  2. It fails

❌ Actual Behavior

agent: LLM call failed {agent_id=main, iteration=1, error=failed to parse JSON response: failed to decode response: json: cannot unmarshal object into Go struct field .choices.message.tool_calls.function.arguments of type string}

✅ Expected Behavior

Works

💬 Additional Context

Not sure what else to provide. Maybe I'm just doing something wrong? I just dropped the new version in for the previous v0.2.0, where it worked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions