Skip to content

v0.6.1

Latest

Choose a tag to compare

@Riccorl Riccorl released this 02 Oct 13:42
v0.6.1
5d73f6b

🚀 What's New

  • ScopeGuardV2.validate / batch_validate (and AsyncScopeGuardV2) now return suggested_response for a Predefined Answer even when the output-field selection leaves it out: a second pass continues from the scope_class + suggested_response prompt and generates the reply as if it had been requested, so it follows the same rules as a requested one (e.g. the user's language). Second-pass tokens are added to usage. On by default; resolve_predefined=False skips it. Implemented on the vllm, vllm-api and hf backends (#57)
  • POST /orbitals/scope-guard-v2/validate and /batch-validate accept a resolve_predefined body param (default true); the api client sends it only when false (#57)

🔧 Internal

  • Extract each backend's classify predefined-response step (_continue_predefined on vllm-api and hf, _predefined_prompt/_predefined_params on offline vllm) and reuse it from validate; the hf backend's single validate now goes through batch_validate; _add_usage returns None when either side is None (#57)