Skip to content

[BUG] PicoClaw does not call tool with LongCat API #2046

@muhammadwaqasathar

Description

@muhammadwaqasathar

Quick Summary

PicoClaw does not call tool with LongCat API

Image

Environment & Tools

  • **PicoClaw Version: 0.2.4
  • **Go Version: 1.25.8
  • **AI Model & Provider: Longchat OPENAI API
  • **Operating System: MacOS
  • **Channels: None

📸 Steps to Reproduce

  1. Configure Longchat API KEY with Base URL : https://api.longcat.chat/openai/v1
  2. Run a chat , and ask for the weather
  3. Message appears instead of tool call
  4. <longcat_tool_call>weather <longcat_arg_key>location</longcat_arg_key> <longcat_arg_value>New York, United States</longcat_arg_value> </longcat_tool_call>

❌ Actual Behavior

Tool call string gets printed

<longcat_tool_call>weather <longcat_arg_key>location</longcat_arg_key> <longcat_arg_value>New York, United States</longcat_arg_value> </longcat_tool_call>

✅ Expected Behavior

Tool call to get the weather

💬 Additional Context

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