Understanding Edges
Processing Edges
Modify Edge

Modify Edge


Modify Edge

for basic data manipulation. It has five distinct subtypes:

Copy

Modify Edge copy
  • Purpose: Duplicate the content from one block to another.
  • Input: Any block to be copied.
  • Output: Same type block (text or structured).
  • No configuration required.

Convert to Text

Modify Edge converttotext
  • Purpose: Transform structured content into plain text.
  • Input: Structured block to be converted.
  • Output: Text block.
  • No configuration required.

Convert to Structured

Modify Edge converttostructured
  • Purpose: Parse text into structured data.
  • Input: Text block to be converted.
  • Output: Structured block.
  • Configuration Modes:
    • wrap_into_dict: Turn content into a key-value dictionary.
    • parse_as_json: Extract embedded JSON.
    • parse_as_list: Convert content to a list.
    • split_by_length: Break long text by character count.
    • split_by_character: Split using custom delimiters.

Edit Text

Modify Edge edittext
  • Purpose: Edit or transform plain text content.
  • Input: Text block to be edited.
  • Output: Text block.
  • Return Text: add text before or after your input content.
  • Config Return Mode:
    • return all: Return all Text.
    • return first n : Return first n items.
    • return last n : Return last n items.
    • exclude first n : Return the list excluding the first n items.
    • exclude last n : Return the list excluding the last n items.

Edit Structured

Modify Edge editstructured
  • Purpose: Modify JSON-based structured data.
  • Input: Structured block to be edited.
  • Output: Structured block.
  • Operations Supported:
    • Get: Get the item value corresponds to the specified key or index, support nested key path, and use * for getting items.
    • Delete: Navigate to the path specified and delete the item value.
    • Append: Navigate to the path specified and append new values.
    • Replace: Navigate to the path specified and replace/update the item with new value.
    • Get all Keys: Get all keys of the strucutred block content.
    • Get all Values: Get all values of the strucutred block content.