chatgpt-api/packages/validators
Travis Fischer e9435f05a3 chore: release v8.4.1 2025-07-02 11:27:19 -05:00
..
src fix: relax tool name validation a bit 2025-07-02 11:14:38 -05:00
package.json chore: release v8.4.1 2025-07-02 11:27:19 -05:00
readme.md fix: make readme images fully qualified urls so npm readmes don't 404 on them 2025-06-30 12:59:49 -05:00
tsconfig.json feat: drizzle-zod and hono openapi improvements 2025-04-26 06:11:33 +07:00

readme.md

Agentic

Build Status NPM Prettier Code Formatting

@agentic/platform-validators

Core schemas and validators shared across the Agentic platform.

[!TIP] You likely don't need this package directly. See @agentic/cli, @agentic/platform, and @agentic/platform-tool-client for more public-facing packages.

Install

npm i @agentic/platform-validators

Usage

import { parseProjectIdentifier } from '@agentic/platform-validators'

const parsedProjectIdentifier = parseProjectIdentifier('@agentic/search')

Identifiers

Project Identifier

  • @username/project-slug
  • @team-slug/project-slug

Examples:

  • @agentic/search

Deployment Identifier

  • ${projectIdentifier} will implicitly use ${projectIdentifier}@latest
  • ${projectIdentifier}@latest (the most recently published deployment)
  • ${projectIdentifier}@dev (the most recently pushed deployment)
  • ${projectIdentifier}@deploymentHash (a specific deployment)
  • ${projectIdentifier}@version (a specific published deployment specified via semver)

Examples:

  • @agentic/search
  • @agentic/search@latest
  • @agentic/search@1.0.0

Tool Identifier

  • ${deploymentIdentifier}/tool_name

Examples:

  • @agentic/search/search
  • @agentic/search@latest/search
  • @agentic/search@1.0.0/search

Tool Names

  • Must start with a letter or underscore
  • Can include only letters, numbers, and underscores
  • Use either camelCase or snake_case consistently across all tools

OpenAI vs Anthropic vs Google vs MCP tool name restrictions

License

GNU AGPL 3.0