Spaces:
Sleeping
Sleeping
Create common.py
Browse files- tools/common.py +10 -0
tools/common.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# tools/common.py
|
| 2 |
+
|
| 3 |
+
def prepend_metadata_questions(questions):
|
| 4 |
+
"""Prepends standard metadata questions to any tool's question list."""
|
| 5 |
+
metadata = [
|
| 6 |
+
("user_name", "What is your name?"),
|
| 7 |
+
("user_role", "What is your role?"),
|
| 8 |
+
("organization_name", "What is the name of your organization?")
|
| 9 |
+
]
|
| 10 |
+
return metadata + questions
|