Python: Filter proposal: deterministic physics/bounds tool-call filter (auto_function_invocation)

Aperta
#14,747 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
32/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Read semantic_kernel/filters/auto_function_invocation and filter_types.py, then review the existing auto-invocation filter examples and tests. The proposal asks whether to add a sample filter with tests or a documentation recipe, depending on whether samples are frozen; first check which contribution path maintainers accept. Done means an accepted scope with reproducible argument checks against a versioned rule table.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

python triage

Hi team — SK's filter pipeline (semantic_kernel/filters/auto_function_invocation, filter_types.py) is a natural slot for a deterministic physics/bounds filter: before auto-invoked functions run, their arguments are checked against a rule table (probability bounds, negative mass/count, speed above c, NaN/Inf). No LLM call; verdicts reproducible given input + a pinned rule-table version (public repo: https://github.com/PHM-Audit/phm-lite-check) (phm-lite-check).

This is designed to compose with SK's existing termination/invocation filters: content safety catches semantics, physics bounds catch physically-invalid numbers. The checker ships as a Dify Marketplace plugin and an MCP-registry-listed package; smoke-tested on NVIDIA nemo-relay==0.11.1; rules were updated during review discussion in microsoft/PyRIT#3507 (public thread).

Ask: would a PR adding this as a sample filter (Python, following auto_function_invocation examples, with tests) be welcome? Or as a docs recipe if samples are frozen ahead of a release.

— PHM-Audit

Lingua principale
C#
Stelle
28.8k
Fork
4.9k
Merge medio
2g 17h
PR unite (30g)
48

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/semantic-kernel

Tutte le issue di microsoft/semantic-kernel

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.