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

Đang mở
#14,747 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
32/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend-api-design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C#
Star
28.8k
Fork
4.9k
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/semantic-kernel

Tất cả issue của microsoft/semantic-kernel

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.