INNER CODE UNIT · TypeScript
startInteractive
superagent-ai/grok-cli · src/index.ts:59
async function startInteractive(
apiKey: string | undefined,
baseURL: string,
model: string | undefined,
maxToolRounds: number,
batchApi: boolean,
sandboxMode: SandboxMode,
sandboxSettings: SandboxSettings,
session?: string,
initialMessage?: string,
) {
const agent = new Agent(apiKey, baseURL, model, maxToolRounds, { session, sandboxMode, sandboxSettings, batchApi });
const { createCliRenderer } = await import("@opentui/core");
const { createRoot } = await import("@opentui/react");
const { createElement } = await import("react");
const { App } = await import("./ui/app");
const renderer = await createCliRenderer({