Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

479 B
Raw Blame
export interface PythonOptions {
  /**
   * Pyodide CDN URL
   */
  pyodideIndexUrl?: string;
  /**
   * PyPI index URL, must support [JSON API](https://warehouse.pypa.io/api-reference/json.html)
   *
   * Default value: `https://pypi.org/pypi/{package_name}/json`
   */
  pypiIndexUrl?: string;
}

export interface PythonOutput {
  data: string;
  type: 'stdout' | 'stderr';
}

export interface PythonResult {
  output?: PythonOutput[];
  result?: string;
  success: boolean;
}