GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — AgentEngineSandboxCodeExecutor | ADK for TypeScript: API Reference - v2.5.0

  • AgentEngineSandboxCodeExecutor

Class AgentEngineSandboxCodeExecutor

A code executor that uses Agent Engine Code Execution Sandbox to execute code.

Hierarchy (View Summary)

  • BaseCodeExecutor
    • AgentEngineSandboxCodeExecutor
  • Defined in core/src/code_executors/agent_engine_sandbox_code_executor.ts:92

Constructors

constructor

  • new AgentEngineSandboxCodeExecutor(
        options?: AgentEngineSandboxCodeExecutorOptions,
    ): AgentEngineSandboxCodeExecutor

    Parameters

    • options: AgentEngineSandboxCodeExecutorOptions = {}

    Returns AgentEngineSandboxCodeExecutor

    Overrides BaseCodeExecutor.constructor

    • Defined in core/src/code_executors/agent_engine_sandbox_code_executor.ts:100

Properties

Readonly[BASE_CODE_EXECUTOR_SIGNATURE_SYMBOL]

"[BASE_CODE_EXECUTOR_SIGNATURE_SYMBOL]": true

A unique symbol to identify BaseCodeExecutor class.

Inherited from BaseCodeExecutor.[BASE_CODE_EXECUTOR_SIGNATURE_SYMBOL]

  • Defined in core/src/code_executors/base_code_executor.ts:52

OptionalagentEngineResourceName

agentEngineResourceName?: string
  • Defined in core/src/code_executors/agent_engine_sandbox_code_executor.ts:94

codeBlockDelimiters

codeBlockDelimiters: [string, string][] = ...

The list of the enclosing delimiters to identify the code blocks. For example, the delimiter('javascript\\n', '\\n') can be used to identify code blocks with the following format:

 console.log("hello")

Inherited from BaseCodeExecutor.codeBlockDelimiters

  • Defined in core/src/code_executors/base_code_executor.ts:82

errorRetryAttempts

errorRetryAttempts: number = 2

The number of attempts to retry on consecutive code execution errors. Default to 2.

Inherited from BaseCodeExecutor.errorRetryAttempts

  • Defined in core/src/code_executors/base_code_executor.ts:71

executionResultDelimiters

executionResultDelimiters: [string, string] = ...

The delimiters to format the code execution result.

Inherited from BaseCodeExecutor.executionResultDelimiters

  • Defined in core/src/code_executors/base_code_executor.ts:94

optimizeDataFile

optimizeDataFile: boolean = false

If true, extract and process data files from the model request and attach them to the code executor.

Supported data file MimeTypes are [text/csv]. Default to false.

Inherited from BaseCodeExecutor.optimizeDataFile

  • Defined in core/src/code_executors/base_code_executor.ts:60

OptionalsandboxResourceName

sandboxResourceName?: string
  • Defined in core/src/code_executors/agent_engine_sandbox_code_executor.ts:93

stateful

stateful: boolean = false

Whether the code executor is stateful. Default to false.

Inherited from BaseCodeExecutor.stateful

  • Defined in core/src/code_executors/base_code_executor.ts:65

Methods

executeCode

  • executeCode(params: ExecuteCodeParams): Promise<CodeExecutionResult>

    Executes code and return the code execution result.

    Parameters

    • params: ExecuteCodeParams

      The parameters for executing code.

    Returns Promise<CodeExecutionResult>

    The result of the code execution.

    Overrides BaseCodeExecutor.executeCode

    • Defined in core/src/code_executors/agent_engine_sandbox_code_executor.ts:143
Constructors
constructor
Properties
[BASE_CODE_EXECUTOR_SIGNATURE_SYMBOL]agentEngineResourceNamecodeBlockDelimiterserrorRetryAttemptsexecutionResultDelimitersoptimizeDataFilesandboxResourceNamestateful
Methods
executeCode
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.