Files and URLs
Runchat will always try to upload images and files to our servers and return a url string that represents the file content. This allows workflow file sizes to remain small and latency to be kept to a minimum.Objects
Object (specifically JSON objects) are strings with a special notation used to describe properties of things. Objects are made up of strings calledkeys
, each with a value
that can be any data type you like - including another object. Objects are always written in the same format:
{}
, and keys and values are always separated by a :
.
Because a lot of third party APIs (including language models and services like youtube) return data in object format, runchat needs to work with them. Runchat defaults to the object input for object types, where you can easily add keys and values including creating nested objects.
Arrays
An array is a list of other data types. All runchat parameter data is stored as an array. If a parameter has more than one thing in this array, runchat will display a pagination UI on the node to allow you to step through inputs and outputs.Runchat Parameters, Types and UI
String (Emerald)
UI Type: text, Data Type: string (text)
Number (Purple)
UI Type: slider, Data Type: number (numeric value)
Boolean (Purple)
UI Type: toggle, Data Type: boolean (true/false value)
Object (Amber)
UI Type: object, Data Type: object (key-value pairs)
Image (Orange)
UI Type: image, Data Type: string (URL or base64 encoded image data)
Video (Orange)
UI Type: video, Data Type: string (URL or base64 encoded video data)
Audio (Orange)
UI Type: audio, Data Type: string (URL or base64 encoded audio data)
Model (Dark Teal)
UI Type: model, Data Type: string (model identifier)
Message (Blue)
UI Type: context, Data Type: Message (structured message object)
Context (Blue)
UI Type: context, Data Type: Context (collection of messages)
Code (Slate)
UI Type: code, Data Type: string (code snippet)
Array (Amber)
UI Type: text, Data Type: Array (list of items)
Instruction (Gray)
UI Type: instruction, Data Type: string (instructional text)
Null (Slate)
UI Type: text, Data Type: null (absence of a value)
Markdown (Emerald)
UI Type: markdown, Data Type: string (text formatted with Markdown)
File (Dark Teal)
UI Type: file, Data Type: string (file path or content identifier)
Format (Slate)
UI Type: format, Data Type: any (formatting instructions, e.g., JSON schema)
HTML (Slate)
UI Type: html, Data Type: string (HTML content)
PDF (Dark Teal)
UI Type: pdf, Data Type: string (PDF content identifier, e.g., URL or base64)
Trigger (Slate)
UI Type: button, Data Type: string (trigger signal or identifier)
Select (Slate)
UI Type: select, Data Type: SelectOptions (list of choices and the current selection)