Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

899 B
Raw Blame
import { z } from 'zod';

export { toolError } from '../payments.js';

// MCP ToolAnnotations shared by the inference tools. Every tool is a pure
// model-inference call: nothing local is modified (readOnlyHint) and the call
// reaches external services — watsonx.ai and the x402 facilitator
// (openWorldHint). Generative tools can return different output for identical
// input; embeddings are deterministic for a given model.
export const generativeAnnotations = Object.freeze({
	readOnlyHint: true,
	destructiveHint: false,
	openWorldHint: true,
	idempotentHint: false,
});

export const deterministicAnnotations = Object.freeze({
	readOnlyHint: true,
	destructiveHint: false,
	openWorldHint: true,
	idempotentHint: true,
});

export function jsonSchemaFromZod(shape) {
	const schema = z.toJSONSchema(z.object(shape).strict(), { target: 'draft-7' });
	delete schema.$schema;
	return schema;
}