PythonInterpreterToolParams: {
    args: undefined | string[];
    callbacks?: undefined | Callbacks;
    checkAPIVersion: undefined | boolean;
    enableRunUntilComplete: undefined | boolean;
    env: undefined | {
        [key: string]: string;
    };
    fullStdLib: undefined | boolean;
    indexURL: undefined | string;
    instance: typeof PyodideAPI;
    jsglobals: undefined | object;
    lockFileURL: undefined | string;
    metadata?: undefined | Record<string, unknown>;
    packageCacheDir: undefined | string;
    packages: undefined | string[];
    pyproxyToStringRepr: undefined | boolean;
    responseFormat?: undefined | string;
    stdLibURL: undefined | string;
    stderr: undefined | ((msg: string) => void);
    stdin: undefined | (() => string);
    stdout: undefined | ((msg: string) => void);
    tags?: undefined | string[];
    verbose?: undefined | boolean;
    verboseParsingErrors?: undefined | boolean;
}

Type declaration

  • args: undefined | string[]
  • Optionalcallbacks?: undefined | Callbacks
  • checkAPIVersion: undefined | boolean
  • enableRunUntilComplete: undefined | boolean
  • env: undefined | {
        [key: string]: string;
    }
  • fullStdLib: undefined | boolean
  • indexURL: undefined | string
  • instance: typeof PyodideAPI
  • jsglobals: undefined | object
  • lockFileURL: undefined | string
  • Optionalmetadata?: undefined | Record<string, unknown>
  • packageCacheDir: undefined | string
  • packages: undefined | string[]
  • pyproxyToStringRepr: undefined | boolean
  • OptionalresponseFormat?: undefined | string

    The tool response format.

    If "content" then the output of the tool is interpreted as the contents of a ToolMessage. If "content_and_artifact" then the output is expected to be a two-tuple corresponding to the (content, artifact) of a ToolMessage.

    "content"
    
  • stdLibURL: undefined | string
  • stderr: undefined | ((msg: string) => void)
  • stdin: undefined | (() => string)
  • stdout: undefined | ((msg: string) => void)
  • Optionaltags?: undefined | string[]
  • Optionalverbose?: undefined | boolean
  • OptionalverboseParsingErrors?: undefined | boolean

    Whether to show full details in the thrown parsing errors.

    false