@zaikit/core
v0.1.2
Published
Core library for building AI agents — agent creation, tool definitions, and model configuration.
Readme
@zaikit/core
Core library for building AI agents — agent creation, tool definitions, and model configuration.
Install
pnpm add @zaikit/coreUsage
import { createAgent, createTool, model } from "@zaikit/core";
const agent = createAgent({
model: model("google-vertex:gemini-2.0-flash"),
tools: [
createTool({
name: "greet",
description: "Greet the user",
parameters: z.object({ name: z.string() }),
execute: async ({ name }) => `Hello, ${name}!`,
}),
],
});Documentation
License
Apache-2.0
