+
Skip to content

Add strict=False parameter to Tool constructors in agent configuration #96

@tunahorse

Description

@tunahorse

We need to add the strict=False parameter to all Tool constructors in the agent configuration to prevent issues with tool validation. This was discovered when fixing the agent_config.py file where all Tool instantiations were missing this parameter.

The fix should be handled by default in the code, but we also need a configuration option in tunacode.json to allow users to control this behavior.

Changes made in src/tunacode/core/agents/agent_components/agent_config.py:

  • Added strict=False parameter to all Tool constructors in both plan mode and normal mode tool lists

This ensures that tools don't fail strictly when their parameters don't exactly match the function signatures, providing more flexibility in tool usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载