Skip to content

AI tools integration fix#747

Merged
NeptuneHub merged 3 commits into
mainfrom
devel
Jul 10, 2026
Merged

AI tools integration fix#747
NeptuneHub merged 3 commits into
mainfrom
devel

Conversation

@NeptuneHub

@NeptuneHub NeptuneHub commented Jul 10, 2026

Copy link
Copy Markdown
Owner

AI tools integration fix - #746

PR test builds:

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors how 'uniqueItems' constraints are applied to tool schemas to prevent small Ollama models from looping values. Instead of hardcoding these constraints in the shared 'tools.py' file, the logic has been moved to a new recursive utility function, '_inject_unique_items', in 'prompts.py', which dynamically injects the constraint only for the Ollama structured-output path. The reviewer suggested an optimization for the recursive traversal in '_inject_unique_items' to improve readability and reduce memory overhead by avoiding key snapshots during iteration.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tasks/ai/prompts.py
@sonarqubecloud

Copy link
Copy Markdown

@NeptuneHub NeptuneHub merged commit a021e24 into main Jul 10, 2026
31 checks passed
@NeptuneHub NeptuneHub deleted the devel branch July 10, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant