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

オープン
#14,747 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
32/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C#
スター
28.8k
フォーク
4.9k
平均マージ
2日 17時間
マージ済み PR(30日)
48

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/semantic-kernel のほかの issue

microsoft/semantic-kernel の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。