agent harness initialize repo
This commit is contained in:
8
agent-human-in-the-loop/tools/interaction.py
Normal file
8
agent-human-in-the-loop/tools/interaction.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def ask_question(question: str) -> str:
|
||||
"""Ask the user a clarifying question and return their answer."""
|
||||
print(f"\n [agent] {question}")
|
||||
try:
|
||||
answer = input(" Your answer: ").strip()
|
||||
except EOFError:
|
||||
return "(no answer — EOF)"
|
||||
return answer if answer else "(no answer provided)"
|
||||
Reference in New Issue
Block a user