Types and schemas
Types only
Import types without the client runtime:
import type { Agent, Session } from "@renai-labs/sdk/types"Zod schemas
Import Zod schemas for runtime validation:
import { AgentCreateBody } from "@renai-labs/sdk/zod"
const parsed = AgentCreateBody.parse(input)Requires npm install zod.
Related
- Client — using the SDK.
- API reference — the source of these types.