Skip to content

Conversation

Groveer
Copy link

@Groveer Groveer commented Sep 10, 2025

Description

Add strict=true to all function tool schemas to ensure consistent strictness across the chat tool catalog.

When I use a third-party model to call tools, I get an error: All function tools should have the same strictness. So I think all tools should set strict to true, tested this is correct

Screenshots

图片

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I've updated CodeCompanion.has in the init.lua file for my new feature
  • I've added test coverage for this fix/feature
  • I've updated the README and/or relevant docs pages
  • I've run make all to ensure docs are generated, tests pass and my formatting is applied

Add strict=true to all function tool schemas to ensure consistent
strictness across the chat tool catalog.

When I use a third-party model to call tools, I get an error: `All function tools should have the same strictness.` So I think all tools should set strict to true, tested this is correct
@olimorris olimorris added the P3 Low impact, low urgency label Sep 10, 2025
@Davidyz
Copy link
Contributor

Davidyz commented Sep 10, 2025

May I ask what provider those errors come from? Also, if this is consistently happening across all tools, maybe we should emphasise this in the docs as well.

@Groveer Groveer closed this Sep 10, 2025
@Groveer Groveer reopened this Sep 10, 2025
@Groveer
Copy link
Author

Groveer commented Sep 10, 2025

May I ask what provider those errors come from? Also, if this is consistently happening across all tools, maybe we should emphasise this in the docs as well.

This is our company's model, a third-party Kimi-K2 model, not an official model.

@olimorris
Copy link
Owner

I've never come across, nor have I heard of this being an issue before..

I can't accept this PR if we're not going to test this for every single adapter that supports function calling.

@olimorris olimorris added P4 Negligible impact and urgency and removed P3 Low impact, low urgency labels Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P4 Negligible impact and urgency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants