Patterns
Interactivity
Enable agents to interact with users through the CLI.
Marvin allows agents to interact with users through the command line interface (CLI). This is useful for:
- Gathering user input during task execution
- Creating interactive chatbots
- Building conversational interfaces
- Getting user confirmation or choices
- Providing real-time feedback
Note that this is not a replacement for a proper user interface, and is intended primarily for local prototyping and development.
Enabling CLI Interaction
To enable CLI interaction for a task, set the cli
parameter to True
:
Interactive Conversations
Use threads to maintain context in interactive conversations:
Example: Interactive Survey
Here’s a complete example of an interactive survey: