Transform Text Agent
The TransformTextAgent
class provides a configuration for an agent designed to process and transform text input. This agent takes an initial text and applies transformation rules or modifications to it, using a specified completion model to adjust the text as needed. It’s useful for scenarios where text needs to be restructured, reformatted, or enhanced (such as content rephrasing, summarization, or style adjustments).
This agent configuration defines the necessary fields to handle transformation requests and interact with text in a flexible manner, making it ideal for automated content manipulation tasks.
Fields
completion: Completion
Title: Completion Configuration
Description: Specifies the configuration for the GenAI model that will handle the text transformation task. This includes model selection, response parameters, and any specific guidelines for how the transformation should occur.
Type:
Completion
Required: Yes
transform_request: Optional[str]
Title: Transform Request
Description: A field that specifies the nature of the transformation to be applied to the input text. It can include transformation type (e.g., rephrasing, summarizing) or any additional context needed for the agent to determine how to modify the text.
Type: String (Optional)
Default:
"transform_request"
text_path: Optional[str]
Title: Text Path
Description: Path to the input text that will undergo transformation. This specifies the field or key in the input data where the text to be processed can be found.
Type: String (Optional)
Default:
"text"