[AUR-411] Adopt to Example2 project (#28)
Add the chatbot from Example2. Create the UI for chat.
This commit is contained in:
committed by
GitHub
parent
533fffa6db
commit
6e7905cbc0
16
knowledgehub/contribs/promptui/logs.py
Normal file
16
knowledgehub/contribs/promptui/logs.py
Normal file
@@ -0,0 +1,16 @@
|
||||
class ResultLog:
|
||||
"""Callback getter to get the desired log result
|
||||
|
||||
The callback resolution will be as follow:
|
||||
1. Explicit string name
|
||||
2. Implicitly by: `get_<name>`
|
||||
3. Pass through
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def _get_input(obj):
|
||||
return obj["input"]
|
||||
|
||||
@staticmethod
|
||||
def _get_output(obj):
|
||||
return obj["output"]
|
Reference in New Issue
Block a user