- Joined
- Sep 4, 2024
- Messages
- 1
- Reaction score
- 0
I'm very new, so excuse my ignorance. I have hardly coded at all. My goal is to have the assistant either ask for more context when I say edit or to give me a language objective that is related to the topic in the LO I gave it.
Here's the code:
answer = ask_the_user_a_question("Do you want me to edit your objective or do you want me to guide you?")
if answer.lower() == "edit my language objective" or answer.lower() == "edit" or answer.lower() == "i have a language objective":
answer = ask_the_user_a_question("Can you send me your objective, please?")
send_the_assistant_a_message("Please ask for more information if you need it.")
send_the_assistant_a_message("Create language objective.")
answer = ask_the_user_a_question("Is this ok? Yes or No")
while answer.lower() == "no":
send_the_assistant_a_message("Adjust language objective for user.")
answer = ask_the_user_a_question("Is this ok? Yes or No")
exit()
It's producing this:
Do you want me to edit your objective or do you want me to guide you? edit
Can you send me your objective, please? students will introduce themselves.
ASSISTANT RESPONSE
-------
What information do you need?
ASSISTANT RESPONSE
-------
What specific language objective would you like me to create?
Is this ok? Yes or No
Here's the code:
answer = ask_the_user_a_question("Do you want me to edit your objective or do you want me to guide you?")
if answer.lower() == "edit my language objective" or answer.lower() == "edit" or answer.lower() == "i have a language objective":
answer = ask_the_user_a_question("Can you send me your objective, please?")
send_the_assistant_a_message("Please ask for more information if you need it.")
send_the_assistant_a_message("Create language objective.")
answer = ask_the_user_a_question("Is this ok? Yes or No")
while answer.lower() == "no":
send_the_assistant_a_message("Adjust language objective for user.")
answer = ask_the_user_a_question("Is this ok? Yes or No")
exit()
It's producing this:
Do you want me to edit your objective or do you want me to guide you? edit
Can you send me your objective, please? students will introduce themselves.
ASSISTANT RESPONSE
-------
What information do you need?
ASSISTANT RESPONSE
-------
What specific language objective would you like me to create?
Is this ok? Yes or No