Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 2.24 KB

TemplateFunction.md

File metadata and controls

22 lines (17 loc) · 2.24 KB

PollinationSDK.Model.TemplateFunction

Properties

Name Type Description Notes
Name string Function name. Must be unique within a plugin.
Config PluginConfig The plugin config to use for this function
Annotations Dictionary<string, string> An optional dictionary to add annotations to inputs. These annotations will be used by the client side libraries. [optional]
Inputs List<AnyOfFunctionStringInputFunctionIntegerInputFunctionNumberInputFunctionBooleanInputFunctionFolderInputFunctionFileInputFunctionPathInputFunctionArrayInputFunctionJSONObjectInput> Input arguments for this function. [optional]
Outputs List<AnyOfFunctionStringOutputFunctionIntegerOutputFunctionNumberOutputFunctionBooleanOutputFunctionFolderOutputFunctionFileOutputFunctionPathOutputFunctionArrayOutputFunctionJSONObjectOutput> List of output arguments. [optional]
Description string Function description. A short human readable description for this function. [optional]
Command string Full shell command for this function. Each function accepts only one command. The command will be executed as a shell command in plugin. For running several commands after each other use && between the commands or pipe data from one to another using
Language ScriptingLanguages Programming language of the script. Currently only Python is supported. [optional]
Source string Source contains the source code of the script to execute. [optional]
Type string [optional] [readonly] [default to "TemplateFunction"]

[Back to Model list] [Back to API list] [Back to README]