# Interface ISandboxExecutor

Interface for sandbox executors.

interface ISandboxExecutor {
name: string;
execute(
command: string,
args: readonly string[],
options: SandboxExecutionOptions,
): Promise<SandboxResult>;
validate(
command: string,
args: readonly string[],
options: SandboxExecutionOptions,
): PolicyEvaluation;
}

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:166

##### Index

### Properties

name

### Methods

execute
validate

## Properties

### `Readonly` name

name: string

Executor name for logging.

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:168

## Methods

### execute

- execute(
  command: string,
  args: readonly string[],
  options: SandboxExecutionOptions,
  ): Promise<SandboxResult>

  Execute a command in the sandbox.

  #### Parameters

  - command: string
  - args: readonly string[]
  - options: SandboxExecutionOptions

  #### Returns Promise<SandboxResult>

  - Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:170

### validate

- validate(
  command: string,
  args: readonly string[],
  options: SandboxExecutionOptions,
  ): PolicyEvaluation

  Validate a command without executing.

  #### Parameters

  - command: string
  - args: readonly string[]
  - options: SandboxExecutionOptions

  #### Returns PolicyEvaluation

  - Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:176