Registry for compute providers, enabling local and Docker execution.
// Source: https://github.com/MervinPraison/PraisonAI | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Compute providers: where an agent's tools run.
*
* praisonai-ts had none, so `toolsRunOn` had nothing to select. Two real
* providers ship here -- local and Docker -- and the registry is open, so a
* remote provider (E2B, Modal, Daytona) can be added without touching callers.
*
* Python parity: `praisonai_sandbox.compute`.
*/
import { ComputeError, type ComputeProvider } from './types';
import { LocalCompute } from './local';
import { DockerCompute } from './docker';
import { ComputeToolPlace, registerComputeToolPlaces } from './tool-place';
import { registerToolPlace } from '../agent/features/placement';
export * from './types';
export { Loca
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key