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.

635 B
Raw Blame
// Typed errors for Event Markets. `status`, `code` and `detail` are the shape
// the v1 router (api/_lib/agents-v1/http.js) and the MCP tools both surface, so
// a refusal reads the same on REST and over MCP.

export class EventMarketError extends Error {
	/**
	 * @param {number} status HTTP status
	 * @param {string} code stable machine-readable code
	 * @param {string} message actionable sentence for the caller
	 * @param {object|null} [detail]
	 */
	constructor(status, code, message, detail = null) {
		super(message);
		this.name = 'EventMarketError';
		this.status = status;
		this.code = code;
		this.detail = detail;
	}
}