Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PythonFunction

import type { PythonFunction } from "https://googleapis.deno.dev/v1/ces:v1.ts";

A Python function tool.

interface PythonFunction {
readonly description?: string;
name?: string;
pythonCode?: string;
}

§Properties

§
readonly description?: string
[src]

Output only. The description of the Python function, parsed from the python code's docstring.

§
name?: string
[src]

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

§
pythonCode?: string
[src]

Optional. The Python code to execute for the tool.