Skip to content

Validate agent tool args with JSON Schema - #50

Merged
ammar-s847 merged 1 commit into
mainfrom
agent-harness-22-json-schema-validation
May 27, 2026
Merged

Validate agent tool args with JSON Schema#50
ammar-s847 merged 1 commit into
mainfrom
agent-harness-22-json-schema-validation

Conversation

@ammar-s847

Copy link
Copy Markdown
Contributor

Summary

  • compile each tool descriptor's Draft-07 input schema at registry registration time
  • cache descriptors and validators for provider tool declarations and invocation
  • reject malformed tool args before AgentTool::invoke runs, returning ToolError::BadInput with actionable validator messages

Tests

  • cargo test -p core

Closes #22

@ammar-s847
ammar-s847 merged commit 05c387a into main May 27, 2026
2 checks passed
@ammar-s847
ammar-s847 deleted the agent-harness-22-json-schema-validation branch May 27, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[B9] JSON-Schema (draft-07) per tool + registry validation

1 participant