Input Text:
The RiceRoundInputTextNode is designed to facilitate the input of textual data into the RiceRound system, allowing you to encode and process text efficiently. This node is particularly useful for scenarios where you need to handle multiline text inputs, such as paragraphs or structured data in JSON format. It provides a seamless way to integrate text data into your workflows, ensuring that the text is correctly interpreted and utilized by subsequent nodes in the pipeline. The primary function of this node is to parse and extract relevant content from the provided text input, making it a crucial component for text-based operations within the RiceRound framework.
Input Text Input Parameters:
text_info
The text_info parameter is a required input that accepts a string of text, which can be multiline. This parameter is designed to handle various text formats, including plain text and JSON-encoded strings. When JSON is provided, the node attempts to decode it and extract the "content" field, if available. This feature is particularly useful for processing structured data, allowing you to input complex text data seamlessly. The parameter does not have explicit minimum or maximum values, but it should be a valid string. The default value is an empty string, and it includes a tooltip to guide you in providing the correct input format.
Input Text Output Parameters:
STRING
The output of the RiceRoundInputTextNode is a single string, which represents the processed text extracted from the input. If the input was a JSON string, the output will be the value of the "content" field; otherwise, it will be the original text input. This output is crucial for further processing in the workflow, as it ensures that the text data is correctly formatted and ready for use by other nodes. The output string serves as a bridge between the input text and the subsequent operations, maintaining the integrity and usability of the text data.
Input Text Usage Tips:
- Ensure that the
text_infoparameter is correctly formatted, especially when using JSON. This will help the node to accurately extract the "content" field and prevent errors. - Utilize the multiline capability of the
text_infoparameter to input large blocks of text or structured data, which can be beneficial for complex text processing tasks.
Input Text Common Errors and Solutions:
JSONDecodeError
- Explanation: This error occurs when the input text is not a valid JSON string, and the node fails to decode it.
- Solution: Verify that the input text is correctly formatted as JSON. If JSON is not required, ensure that the text is plain and does not contain JSON-specific syntax errors.
MissingContentField
- Explanation: This error happens when the input JSON does not contain a "content" field, which the node expects to extract.
- Solution: Check the structure of the input JSON to ensure that it includes a "content" field. If the field is missing, modify the JSON structure to include it or adjust the node's logic to handle different field names.
