feat: add SkillPolicy to skill metadata and support allow_implicit_invocation (#11244)

Tested by setting the policy in agents/openai.yaml to true, false, and
leaving it unset (default).
```
policy:
  allow_implicit_invocation: false
```
<img width="847" height="289" alt="Screenshot 2026-02-09 at 3 42 41 PM"
src="https://github.com/user-attachments/assets/d3476264-3355-47cf-894a-4ffba53e3481"
/>
This commit is contained in:
alexsong-oai
2026-02-09 23:13:27 -08:00
committed by GitHub
parent 005e040f97
commit 91704c5672
10 changed files with 176 additions and 17 deletions

View File

@@ -1332,6 +1332,7 @@ mod tests {
short_description: None,
interface: None,
dependencies: None,
policy: None,
path: PathBuf::from("test-skill"),
scope: SkillScope::User,
}]),