ADK for TypeScript: API Reference
    Preparing search index...

    Class BuiltInCodeExecutor

    A code executor that uses the Model's built-in code executor.

    Currently only supports Gemini 2.0+ models, but will be expanded to other models.

    Hierarchy (View Summary)

    Constructors

    Properties

    "[BASE_CODE_EXECUTOR_SIGNATURE_SYMBOL]": true

    A unique symbol to identify BaseCodeExecutor class.

    "[BUILT_IN_CODE_EXECUTOR_SIGNATURE_SYMBOL]": true

    A unique symbol to identify BuiltInCodeExecutor class.

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

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

     print("hello")
    
    errorRetryAttempts: number = 2

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

    executionResultDelimiters: [string, string] = ...

    The delimiters to format the code execution result.

    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.

    stateful: boolean = false

    Whether the code executor is stateful. Default to false.

    Methods