interface ToolCodeNodeParameters {
description?: string;
inputSchema?: string;
jsCode?: string;
jsonSchemaExample?: string;
language?: "javaScript" | "python";
name?: string;
pythonCode?: string;
schemaType?: "manual" | "fromJson";
specifyInputSchema?: boolean;
}
Properties§
Source§readonly input Schema?: string
readonly input Schema?: string
Schema to use for the function Default: "{\n"type": "object",\n"properties": {\n\t"some_input": {\n\t\t"type": "string",\n\t\t"description": "Some input to the function"\n\t\t}\n\t}\n}" Type options: {"rows":10}
Source§readonly js Code?: string
readonly js Code?: string
E.g. Converts any text to uppercase Default: "// Example: convert the incoming query to uppercase and return it\nreturn query.toUpperCase()" Type options: {"editor":"jsEditor"}
Source§readonly json Schema Example?: string
readonly json Schema Example?: string
Example JSON object to use to generate the schema Default: "{\n\t"some_input": "some_value"\n}" Type options: {"rows":10}
Source§readonly python Code?: string
readonly python Code?: string
E.g. Converts any text to uppercase Default: "# Example: convert the incoming query to uppercase and return it\nreturn query.upper()" Type options: {"editor":"codeNodeEditor","editorLanguage":"python"}
Type options: {"rows":3}