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.

892 B
Raw Blame
import type { Connection, PublicKey } from "@solana/web3.js";
import type { WalletProvider } from "../wallet/types.js";
import type { z } from "zod";

export interface SolanaAgentLike {
  connection: Connection;
  wallet: WalletProvider;
  readonly publicKey: PublicKey;
}

export type ActionHandler = (
  agent: SolanaAgentLike,
  input: Record<string, unknown>,
) => Promise<Record<string, unknown>>;

export interface ActionExample {
  input: Record<string, unknown>;
  output: Record<string, unknown>;
  explanation: string;
}

export interface Action {
  name: string;
  similes: string[];
  description: string;
  examples: ActionExample[][];
  schema: z.ZodType<unknown>;
  handler: ActionHandler;
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export interface Plugin {
  name: string;
  methods: Record<string, (...args: any[]) => unknown>;
  actions: Action[];
}