Catch AI agent tool schema failures before they reach the provider
Project description
Prism
Catch AI agent tool schema failures before they reach the provider.
The Problem
You write a tool for your AI agent. It works locally. Then it fails with a cryptic 400 error in production. No explanation. No hint. Just failure.
Prism catches these before they ever reach OpenAI or Anthropic.
Install
pip install prism-sdk
Quick Start
from prism.linter import lint_tool
def search_products(query: str, limit: int = 10, category=None): pass
issues = lint_tool(search_products) for issue in issues: print(f"[{issue['level']}] {issue['param']}: {issue['issue']}")
Output
[ERROR] limit: Has default '10' — OpenAI strict will reject this. [WARNING] category: No type annotation. Providers will reject this. [WARNING] function: No docstring. AI uses this as the tool description.
What It Catches
| Issue | Providers Affected |
|---|---|
| Default values not in required[] | OpenAI strict |
| Union types | OpenAI strict |
| Missing type annotations | All |
| Any type | OpenAI strict |
| Missing docstring | All |
Status
Early development. Built to solve a real problem. Issues and feedback welcome.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prism_tool-0.1.0.tar.gz.
File metadata
- Download URL: prism_tool-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
603ffe8f75fffff4b62b7139606378b1160a74a1abd4bc792d62f416b18b9237
|
|
| MD5 |
f21b9441617a90777be23188e21d8076
|
|
| BLAKE2b-256 |
d1b5643d39ada50a76cefeb34882361cb87805a082a9c8027652eda4f05466eb
|
File details
Details for the file prism_tool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prism_tool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb538ae16a35241f1102cebd132db9fc8d1c6beab73de6b4be30cc117711bccc
|
|
| MD5 |
4bbc9eb82cd3d6041b83471088e07302
|
|
| BLAKE2b-256 |
fb1b35676851f34522ac16ef3b5f99f9995ddfb2f21688561c20b762963fd800
|