You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def create_message(chunk: str, question: str) -> Dict[str, str]:
"""Create a message for the chat completion
Args:
chunk (str): The chunk of text to summarize
question (str): The question to answer
Returns:
Dict[str, str]: The message to send to the chat completion
"""
return {
"role": "user",
"content": f'"""{chunk}""" Using the above text, answer the following'
f' question: "{question}" -- if the question cannot be answered using the text,'
" summarize the text.",
}
Use the log cycle handler to log the prompt and the response.
You will have to wait for the big rearch to be done, because right now the commands can't have access to the agent, and this is where the log cycle handler is.
Examples 🌈
No response
Motivation 🔦
No response
The text was updated successfully, but these errors were encountered:
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
Duplicates
Summary 💡
Use the log cycle handler to log the prompt and the response.
You will have to wait for the big rearch to be done, because right now the commands can't have access to the agent, and this is where the log cycle handler is.
Examples 🌈
No response
Motivation 🔦
No response
The text was updated successfully, but these errors were encountered: