Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

316 B
Raw Blame
import { callCoreRpc } from './coreRpcClient';

interface CoreCommandResponse<T> {
  result: T;
  logs: string[];
}

export async function callCoreCommand<T>(method: string, params?: unknown): Promise<T> {
  const response = await callCoreRpc<CoreCommandResponse<T>>({ method, params });
  return response.result;
}