Skip to content

feat(libsy): add system prompt judge route - #764

Draft
sabhatinas wants to merge 1 commit into
mainfrom
sabhatinas/system-prompt-judge
Draft

sabhatinas wants to merge 1 commit into
mainfrom
sabhatinas/system-prompt-judge

Conversation

@sabhatinas

Copy link
Copy Markdown
Contributor

Adds a minimal system_prompt_judge route for libsy/server TOML configs.

Summary:

  • Adds a libsy algorithm that calls a judge target, asks for { "action": "<id-or-none>" }, and prepends the selected hidden DB prompt as a system instruction before serving the target.
  • Adds TOML keys: target, judge_target, db_path, and optional max_output_tokens.
  • Resolves relative db_path values next to the TOML file when loaded from disk.
  • Documents the route and DB text format.

Local tests:

  • cargo test -p switchyard-libsy
  • cargo test -p switchyard-runner
  • cargo test -p switchyard-server

Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://NVIDIA-NeMo.github.io/Switchyard/pr-preview/pr-764/

Built to branch gh-pages at 2026-09-17 21:27 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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