Back to Agentic

@agentic/platform-validators

packages/validators/readme.md

8.4.42.7 KB
Original Source
<p align="center"> <a href="https://agentic.so/publishing"> </a> </p> <p> <a href="https://github.com/transitive-bullshit/agentic/actions/workflows/main.yml"></a> <a href="https://www.npmjs.com/package/@agentic/platform-validators"></a> <a href="https://prettier.io"></a> </p>

@agentic/platform-validators <!-- omit from toc -->

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

bash
npm i @agentic/platform-validators

Usage

ts
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:

Tool Identifier

  • ${deploymentIdentifier}/tool_name

Examples:

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