Skip to content

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.