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.

1.1 KB
Raw Blame
import type { RuntimeStepContext, StepContextTodos } from '../types/vendor.js';
/**
 * Input parameters for computeStepContext
 * Using object parameter for future extensibility
 */
export interface ComputeStepContextParams {
    /**
     * Pre-computed todos state from message selector
     * Should be computed using selectTodosFromMessages in chat store selectors
     */
    todos?: StepContextTodos;
}
/**
 * Compute the Step Context from pre-computed values
 *
 * Called in internal_execAgentRuntime while loop before each runtime.step() call.
 * The stepContext is then passed through AgentRuntimeContext to Tool Executors.
 *
 * Note: The actual data (like todos) should be computed using selectors in the UI layer
 * (e.g., selectTodosFromMessages in chat store) and passed here.
 * This separation allows the selector logic to be reused for UI display.
 *
 * @param params - Object containing pre-computed state values
 * @returns RuntimeStepContext assembled from the provided values
 */
export declare const computeStepContext: ({ todos }: ComputeStepContextParams) => RuntimeStepContext;