Text Agents
Text Prompt Agent
The TextPromptAgent
generates responses to text inputs that are augmented with a specific query.
Initialization
Parameters
The TextPromptAgent
is initialized with two arguments:
A string that represents the prompt used to guide the modelβs analysis of the text.
The selected model. All supported LLM
models can be found below:
Example
This simple example demonstrates how the TextPromptAgent
can be used in customer support to enhance interactions by prompting for additional information.
example.py