界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

targets-scorers

targets-scorers

【效率与协作】Configure PyRIT prompt targets, target capabilities, scorers, score aggregation, and target/scorer troubleshooting.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: targets-scorers description: "Configure PyRIT prompt targets, target capabilities, scorers, score aggregation, and target/scorer troubleshooting." disable-model-invocation: true metadata: disco-role: operating license: MIT

Targets and Scorers

Use this sub-skill when you need to:

  • choose and configure a prompt target
  • reason about target capabilities, modalities, auth, and rate limits
  • choose or compose scorers
  • aggregate, threshold, or batch score results
  • debug credential, endpoint, browser, model, JSON, or modality failures

Start here

Fast routing

  • Offline dry run, logging, or manual prompt capture: TextTarget
  • OpenAI / Azure OpenAI / OpenAI-compatible services: OpenAIChatTarget, OpenAIResponseTarget, OpenAICompletionTarget
  • Raw HTTP or API-style endpoints: HTTPTarget, HTTPXAPITarget
  • Browser or web UI workflows: PlaywrightTarget, PlaywrightCopilotTarget, WebSocketCopilotTarget
  • Provider fan-out or load balancing: LiteLLMChatTarget, RoundRobinTarget
  • Local model / torch / download-heavy workflows: HuggingFaceChatTarget
  • Exact or regex detectors: SubStringScorer, RegexScorer
  • LLM-guided judgment: SelfAsk* scorers, LlamaGuardScorer, ShieldGemmaScorer
  • Aggregation, thresholding, and memory-backed evaluation: TrueFalseCompositeScorer, FloatScaleThresholdScorer, BatchScorer, pyrit.analytics

Boundaries

Operating rule

  1. Pick the smallest target family that fits the endpoint or workflow.
  2. Check capabilities before assuming the target can accept a modality or conversation shape.
  3. Prefer local scorers when the signal is lexical or rule-based.
  4. Use LLM-backed scorers only when the judgment needs model reasoning.
  5. Keep live-service checks separate from the offline smoke script.

Bundled files

我的收藏