Skip to content

Conversation

@GangGreenTemperTatum
Copy link
Contributor

@GangGreenTemperTatum GangGreenTemperTatum commented Jan 20, 2026

[TOOLS] ask_user reverse HITL

Key Changes:

  • Adds an ask_user question within the interaction class for a reverse-HITL style agent tool that pauses the current trajectory for user input

Added:

  • Ask user question tool (interaction, ask_user)

Usage Example:

from dreadnode.agent import Agent                                                                                                                                                                                                                                                         
from dreadnode.agent.tools.interaction import ask_user                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                          
agent = Agent(                                                                                                                                                                                                                                                                            
    name="analyzer",                                                                                                                                                                                                                                                                      
    instructions="Ask user for preferences using ask_user tool",                                                                                                                                                                                                                          
    tools=[ask_user],                                                                                                                                                                                                                                                                     
)   

Generated Summary:

  • Added a new module interaction.py that introduces user interaction capabilities.
  • Implemented a Question model with options for multiple-choice questions.
  • Created the ask_user function which presents questions to the user and retrieves their selections:
    • Supports both single and multi-select options.
    • Validates input and logs user responses and metrics.
  • Updated __init__.py to include the new interaction module.
  • Updated pyproject.toml for linters to recognize interaction.py.
  • Added unit tests for the Question model and ask_user function to ensure correctness and expected behavior.
  • Potential impact:
    • This enhancement allows for more dynamic and interactive user experiences within the application.
    • It may require further testing in scenarios where user input is demanded.

This summary was generated with ❤️ by rigging

@dreadnode-renovate-bot dreadnode-renovate-bot bot added area/python Changes to Python package configuration and dependencies area/tests Changes to test files and testing infrastructure labels Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/python Changes to Python package configuration and dependencies area/tests Changes to test files and testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants