Skip to content

fix(examples): derive tool dispatch names from manifest (#178) - #329

Merged
rosspeili merged 1 commit into
ARPAHLS:mainfrom
rosspeili:fix-178-example-dispatch
Sep 3, 2026
Merged

fix(examples): derive tool dispatch names from manifest (#178)#329
rosspeili merged 1 commit into
ARPAHLS:mainfrom
rosspeili:fix-178-example-dispatch

Conversation

@rosspeili

Copy link
Copy Markdown
Contributor

Summary

Fixes #178

Replace hardcoded skill IDs in agent-loop examples with manifest-derived TOOL_NAME values so dispatch stays aligned with the loaded bundle if manifest names change.

Changes:

  • examples/claude_tos_evaluator.pyTOOL_NAME = bundle["manifest"]["name"]; dispatch via tool_name == TOOL_NAME
  • examples/ollama_tos_evaluator.py — same pattern; Ollama JSON template uses {TOOL_NAME} instead of "the_tool_name"
  • examples/ollama_novelty_extractor.py — same Ollama pattern
  • CHANGELOG.md[Unreleased] Fixed entry

examples/gemini_tos_evaluator.py was already correct on main (sanitized manifest name). No loader, skill, or index changes.

Type of Change

  • New Skill
  • Skill Upgrade
  • Bug Fix
  • Documentation
  • Framework Feature
  • CLI
  • Examples
  • Packaging
  • RFC / meta

Checklist (all PRs)

  • Linked GitHub issue (Fixes #178)
  • Scope matches the issue — no unrelated refactors
  • black --check / flake8 on touched files (examples-only diff)
  • pytest tests/test_registry_docs.py and tests/test_examples_smoke.py — 19 passed
  • CHANGELOG.md updated under [Unreleased]
  • examples/README.md unchanged (no scripts added/renamed/removed)
  • pytest tests/test_registry_docs.py run (no catalog/agent-loops matrix change)

New or updated skill

N/A — examples-only PR.

Related Issues

Fixes #178

Replace hardcoded skill IDs in claude_tos_evaluator, ollama_tos_evaluator,
and ollama_novelty_extractor with manifest-derived TOOL_NAME values.
@rosspeili
rosspeili merged commit c4cf347 into ARPAHLS:main Sep 3, 2026
6 checks passed
@rosspeili
rosspeili deleted the fix-178-example-dispatch branch September 3, 2026 08:18
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.

[Docs]: Audit runnable examples for manifest-derived tool name dispatch

1 participant