Skip to content

Tool Metric for /tools/{tool_id} endpoint#5017

Open
ScarAnd wants to merge 4 commits into
IBM:mainfrom
ScarAnd:add-tool-metric-to-response
Open

Tool Metric for /tools/{tool_id} endpoint#5017
ScarAnd wants to merge 4 commits into
IBM:mainfrom
ScarAnd:add-tool-metric-to-response

Conversation

@ScarAnd
Copy link
Copy Markdown

@ScarAnd ScarAnd commented Jun 2, 2026

🔗 Related Issue

Closes (no issue assigned)


📝 Summary

What does this PR do and why?

For now the metrics object always returns null, as it's default hardcoded. This PR adds an optional boolean query parameter called include_metrics.


🏷️ Type of Change

  • Bug fix
  • Feature / Enhancement
  • Documentation
  • Refactor
  • Chore (deps, CI, tooling)
  • Other (describe below)

🧪 Verification

Check Command Status
Lint suite make lint passes
Unit tests make test passes
Coverage ≥ 80% make coverage passes

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • Tests added/updated for changes
  • Documentation updated (if applicable)
  • No secrets or credentials committed

📓 Notes (optional)

Screenshots, design decisions, or additional context.

@ScarAnd ScarAnd changed the title Tool Metric for /tool/{tool_id} endpoint Tool Metric for /tools/{tool_id} endpoint Jun 2, 2026
lucarlig and others added 4 commits June 5, 2026 22:36
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Merged-by: Jitesh Nair <jiteshnair@ibm.com>
Signed-off-by: Andrin Enz <89848517+ScarAnd@users.noreply.github.com>
* chore: update cpex to 0.1.1.dev1 for CopyOnWriteDict support

Signed-off-by: prakhar-singh1928 <prakhar.singh1928@ibm.com>

* add uv lock file

Signed-off-by: prakhar-singh1928 <prakhar.singh1928@ibm.com>

---------

Signed-off-by: prakhar-singh1928 <prakhar.singh1928@ibm.com>
Merged-by: Jitesh Nair <jiteshnair@ibm.com>
Signed-off-by: Andrin Enz <89848517+ScarAnd@users.noreply.github.com>
Signed-off-by: Andrin Enz <89848517+ScarAnd@users.noreply.github.com>
Signed-off-by: Andrin Enz <89848517+ScarAnd@users.noreply.github.com>
@ScarAnd ScarAnd force-pushed the add-tool-metric-to-response branch from 4ed4ff4 to 591d018 Compare June 5, 2026 20:41
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.

3 participants