interface ToolCodeNodeParameters {
description?: string;
inputSchema?: string;
jsCode?: string;
jsonSchemaExample?: string;
language?: "javaScript" | "python";
name?: string;
pythonCode?: string;
schemaType?: "manual" | "fromJson";
specifyInputSchema?: boolean;
}Properties§
readonly description?: stringreadonly input Schema?: stringSchema 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}
readonly js Code?: stringE.g. Converts any text to uppercase Default: "// Example: convert the incoming query to uppercase and return it\nreturn query.toUpperCase()" Type options: {"editor":"jsEditor"}
readonly json Schema Example?: stringExample JSON object to use to generate the schema Default: "{\n\t"some_input": "some_value"\n}" Type options: {"rows":10}
readonly language?: "javaScript" | "python"Default: "javaScript"
readonly name?: string§readonly python Code?: stringE.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"}
readonly schema Type?: "manual" | "fromJson"How to specify the schema for the function Default: "fromJson"
readonly specify Input Schema?: booleanWhether to specify the schema for the function. This would require the LLM to provide the input in the correct format and would validate it against the schema.
Type options: {"rows":3}