tool-usage-validation.yaml 483 B

1234567891011121314151617181920
  1. id: tool-usage-validation
  2. name: Tool Usage Validation (Positive Test)
  3. description: Agent should use required tools and avoid forbidden tools
  4. category: developer
  5. prompt: |
  6. Read the file /tmp/test.txt and write its contents to /tmp/output.txt
  7. approvalStrategy:
  8. type: auto-approve
  9. behavior:
  10. mustUseTools:
  11. - read
  12. - write
  13. mustNotUseTools:
  14. - bash
  15. minToolCalls: 2
  16. maxToolCalls: 5
  17. expectedViolations:
  18. - rule: tool-usage
  19. shouldViolate: false
  20. severity: error