Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prism_tool-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prism_tool-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for prism_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 603ffe8f75fffff4b62b7139606378b1160a74a1abd4bc792d62f416b18b9237
MD5 f21b9441617a90777be23188e21d8076
BLAKE2b-256 d1b5643d39ada50a76cefeb34882361cb87805a082a9c8027652eda4f05466eb

See more details on using hashes here.

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

Hashes for prism_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb538ae16a35241f1102cebd132db9fc8d1c6beab73de6b4be30cc117711bccc
MD5 4bbc9eb82cd3d6041b83471088e07302
BLAKE2b-256 fb1b35676851f34522ac16ef3b5f99f9995ddfb2f21688561c20b762963fd800

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page