Spaces:
Sleeping
Sleeping
Update prompts/prompts.py
Browse files- prompts/prompts.py +7 -0
prompts/prompts.py
CHANGED
|
@@ -40,6 +40,13 @@ def print_default_prompt_templates( agent ):
|
|
| 40 |
try:
|
| 41 |
print("Trying to print the in-memory PromptTemplates object")
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
pt = agent.prompt_templates # <- this is the PromptTemplates object
|
| 44 |
|
| 45 |
# peek at pieces
|
|
|
|
| 40 |
try:
|
| 41 |
print("Trying to print the in-memory PromptTemplates object")
|
| 42 |
|
| 43 |
+
|
| 44 |
+
print(type(agent))
|
| 45 |
+
print(hasattr(agent, "prompt_templates"))
|
| 46 |
+
print(getattr(agent, "prompt_templates", None))
|
| 47 |
+
print([a for a in dir(agent) if "prompt" in a.lower()])
|
| 48 |
+
|
| 49 |
+
|
| 50 |
pt = agent.prompt_templates # <- this is the PromptTemplates object
|
| 51 |
|
| 52 |
# peek at pieces
|