AgentAction | R Documentation |
An object that bundles an Agent together with a prompt and replacements so that it can be chained onto a conversation with the '+' operator.
When 'conversation + AgentAction' is called:
If the agent is not yet in the conversation, it is added.
The agent is prompted with the provided prompt template (and replacements).
The conversation is updated with the agent's response.
AgentAction(agent, prompt_template, replacements = list(), verbose = FALSE)
agent |
An |
prompt_template |
A character string (the prompt). |
replacements |
A named list for placeholder substitution (optional). |
verbose |
Logical. If |
An object of class AgentAction
, used in conversation chaining.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.