AgentIdParamsSchema (routes/agentRoutes.ts)

trueforge · packages/trueforge/src/routes/agentRoutes.ts · typescript · MIT
integration

Defines the immutable agent identifier parameter for agent registry API routes.

// Source: https://github.com/truefoundry/trueforge | License: MIT | Copyright 2024-2026 TrueFoundry
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Agent registry route definitions (mounted at /api/v1/agents).
 * Handlers are registered in apis/agents.ts.
 */
import { createRoute, z } from '@hono/zod-openapi';
import {
  CreateAgentRequestSchema,
  DeleteAgentResponseSchema,
  GetAgentCodeSnippetsRequestQuerySchema,
  GetAgentCodeSnippetsResponseSchema,
  GetAgentResponseSchema,
  ListAgentsResponseSchema,
  UpdateAgentRequestSchema,
} from '../schemas/agent';
import { AGENTS_PAGE_DEFAULT, AGENTS_PAGE_LIMIT } from '../schemas/common';
import { RequestErrorResponseSchema } from '../schemas/errors';
import { TOKEN_PAGINATION } from './fernExtensions';
import { OpenAp

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key