Skip to main content

Python library changelog

Hosted API changes that affect the api backend are in the Hosted API changelog.

0.6.1​

A Predefined Answer carries its reply by default​

  • validate and batch_validate, sync and async, return suggested_response on a Predefined Answer even when output_fields leaves it out: a second pass writes it and adds its tokens to usage. resolve_predefined=False skips it. Backends vllm, vllm-api and hf.
  • serve: validate and batch-validate accept resolve_predefined; the api backend sends it only when False.
  • See also Hosted API, October 2.

0.6.0​

Ask for the class only, with classify​

  • ScopeGuardV2.classify() and batch_classify(), sync and async, read the class from the first token's probabilities and return it with probabilities, confidence, temperature and predefined_response. All four backends.
  • On the api backend they need a server that serves them: serve from this version, or the hosted API from October 2.
  • serve: serves classify and batch-classify.
  • vllm backend: vllm_kwargs, passed to vllm.LLM.

0.5.0​

Choose the output fields; first ScopeGuard-2 checkpoint​

  • output_fields on the constructors, validate, batch_validate and serve, winning over a disagreeing skip_evidences; reasoning is None when left out (Hosted API, September 21).
  • Self-hosting runs scope-guard-v2-4B-q-2609, the first published ScopeGuard-2 checkpoint, on request; a warning flags a checkpoint whose prompt differs.
  • Fixes: the api backend stops sending skip_evidences: false; vllm and hf report usage and gain count_system_prompt_in_usage.
  • Six runnable examples on GitHub.

0.4.0​

ScopeGuard-2, with seven scope classes​

  • ScopeGuardV2, AsyncScopeGuardV2 and ScopeClass in orbitals.scope_guard_v2: seven classes, adding Predefined Answer and Human Oversight. Output adds reasoning and suggested_response.
  • AIServiceDescriptionV2 and PredefinedResponse in orbitals.types; skip_evidences and include_default_safety_principles per guard or call.
  • serve: orbitals scope-guard-v2 serve.
  • Backends hf, vllm (default), api, async vllm-api and api. The first checkpoint you can run yourself comes with 0.5.0; the hosted API serves ScopeGuard-2 from July 6.

0.3.0​

Extract the intents only​

  • ClaimExtractor intents_only, on the constructor, per call and in serve: generation stops after the intents and claims comes back empty. Backends vllm, vllm-api and api.

0.2.1​

Run the smaller ClaimExtractor 2B​

  • Aliases claim-extractor-4B-q and claim-extractor-2B-q (--> claim-extractor-2B-q-2605); claim-extractor and claim-extractor-q still resolve to the 4B.
  • Both weights are open on Hugging Face, under Apache-2.0.

0.2.0​

Extract checkable claims with ClaimExtractor​

  • ClaimExtractor and AsyncClaimExtractor in orbitals.claim_extractor, with extract and batch_extract: claims in four subtypes plus intents.
  • Backends hf, vllm, api, async vllm-api and api.
  • serve: orbitals claim-extractor serve, which also extracts a whole conversation.
  • See also Hosted API, July 6.

0.1.10​

Safety rules as a list​

  • The default safety rules are appended as a bulleted list, so the text added to your AI service description changes.

0.1.9​

Built-in safety rules for ScopeGuard-1​

  • ScopeGuard-1 include_default_safety_principles, on the constructors, per call and in serve.
  • ADDITIONAL_SAFETY_RULES and augment_with_default_safety_principles in orbitals.scope_guard.

0.1.8​

Let the server pick the model​

  • ScopeGuard-1 api backend: model is optional. Without it the request carries no model and the server uses its default (before, always scope-guard).

0.1.7​

Requires transformers 5 and vLLM 0.19​

Migration

On vllm-api, rename include_system_prompt_in_usage_reporting to count_system_prompt_in_usage, and upgrade transformers together with the library.

  • Install floors for the hf and vllm extras: transformers>=5.5.0,<6.0.0 (was >=4.47,<5) and vllm>=0.19.1 (was >=0.11.0).

0.1.6​

The self-hosted server validates again​

Migration

If you pass include_system_prompt_in_usage to vllm-api, rename it to include_system_prompt_in_usage_reporting, or straight to its name in 0.1.7.

  • serve: validate works again (broken since 0.1.4), and batch-validate reads the AI service descriptions from the body.
  • A conversation that does not end with a user message raises ValueError; custom_headers defaults to None.

0.1.5​

Import without vLLM installed​

  • Importing the vllm guard module no longer fails when vLLM is missing.

0.1.4​

Keyword-only arguments after the conversation​

Migration

In validate and batch_validate, pass ai_service_description and every later argument by keyword. On vllm-api, expect lower token counts.

  • api backend: sends model (default scope-guard, per call too); an explicit api_key wins over X-API-Key in custom_headers, with PRINCIPLED_API_KEY as the fallback; the async client calls the right path.
  • vllm-api: per-call model and chat_templating_tokenizer; usage leaves out the system prompt unless include_system_prompt_in_usage=True.

0.1.3​

Correct API path, longer default context​

  • The sync api backend calls {api_url}/orbitals/scope-guard/... (was {api_url}/api/orbitals/...).
  • Conversations are parsed by shape (a string, one message, a list); the vllm default max_model_len is 30,000 (was 15,000).

0.1.2​

Runs on Python 3.10 and later​

  • Python >=3.10 (0.1.1 needed exactly 3.13); the vllm<0.13 cap is gone.
  • Default max_new_tokens and max_tokens down to 3,000 (from 10,000), max_model_len up to 15,000 (from 10,000).

0.1.1​

ScopeGuard-1, the first orbital​

  • First release, under Apache-2.0: ScopeGuard-1 (five classes) with backends hf (default), vllm, api, async vllm-api and api.
  • serve: orbitals scope-guard serve.
  • Open weights on Hugging Face, named in the ScopeGuard-1 FAQ.