feat: refine HITL audit policy defaults (#236)

This commit is contained in:
RuoJi6
2026-08-05 18:02:48 +08:00
committed by GitHub
parent f7ba7070ca
commit aff9c9301f
5 changed files with 161 additions and 38 deletions
@@ -21,6 +21,7 @@ var HitlExemptMetaTools = []string{
"TaskGet",
"TaskUpdate",
"TaskList",
"upsert_project_fact",
}
// IsToolSearchTool reports whether name is the Eino dynamictool tool_search meta-tool.
@@ -45,4 +45,14 @@ func TestMergeHitlExemptMetaTools_includesToolSearch(t *testing.T) {
if !found {
t.Fatalf("tool_search missing from %v", merged)
}
foundProjectFact := false
for _, name := range merged {
if strings.EqualFold(strings.TrimSpace(name), "upsert_project_fact") {
foundProjectFact = true
break
}
}
if !foundProjectFact {
t.Fatalf("upsert_project_fact missing from %v", merged)
}
}