AgentAction {LLMR} | R Documentation |
AgentAction S3 Class
Description
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.
Usage
AgentAction(agent, prompt_template, replacements = list(), verbose = FALSE)
Arguments
agent |
An |
prompt_template |
A character string (the prompt). |
replacements |
A named list for placeholder substitution (optional). |
verbose |
Logical. If |
Value
An object of class AgentAction
, used in conversation chaining.
[Package LLMR version 0.3.0 Index]