ZAIKit

Getting Started

Install and set up ZAIKit in your project

Getting Started

Installation

Install the core package:

pnpm add @zaikit/core

For React applications, also install the React bindings:

pnpm add @zaikit/react

Quick Example

Create a simple agent:

import { createAgent, createTool, model } from "@zaikit/core";

const agent = createAgent({
  model: model("gpt-4o"),
  tools: [
    createTool({
      name: "greet",
      description: "Greet the user",
      parameters: { name: { type: "string" } },
      execute: async ({ name }) => `Hello, ${name}!`,
    }),
  ],
});

On this page