Hi,
I am in Module 2 of Agentic AI, and getting stuck, not sure what I am doing wrong.
I generated draft essay, no problem, but when I run reflect_on_draft
essay_topic = "My topic"
draft = generate_draft(essay_topic)
print("📝 Draft:\n")
print(draft)
feedback = reflect_on_draft(draft)
print("\n🧠 Feedback:\n")
print(feedback)
and this is the prompt in reflect_on_draft:
prompt = f"“”
In draft, in all paragraphs, remove “##” from paragraph topic and make it all caps.
For example, change “##Increased Demand##” to ‘INCREASED DEMAND’
“”"
I get
Feedback:
Sure—just send over your draft (or the paragraphs you’d like updated), and I’ll remove the double-asterisks from each heading and convert them to all caps.
Why it does not see the draft? Do I have to explicitly refer to ‘first parameter’?
Thanks
Hi Azriel_Sv,
Based on what you post here, it may be good to think about what is required to pass the value of a parameter to a string (the prompt you use in reflect_on_draft). Does this help?
Hi @Azriel_Sv,
Yep, as @reinoudbosch mentioned, your prompt is missing something
An additional hint is in the Chart Generation Workflow video of the course (2:29).
Best regards,
Dmitry.
Thanks, it helped. It was not clear to me that I would need to insert the parameter into the prompt
Thanks, Dmitry.
Two hints from @reinoudbosch and you solved my problem.
Another question, to clarify.
I used my own topic, but the final ‘Test the Reflective Writing Workflow’ has frozen default topic, that I cannot change. Did I make a mistake using my own topic? I can add a cell to test my workflow, but instruction says it will be ignored.
Do I have to redo everything using provided topic?
Hi @Azriel_Sv,
I would split your experience with this assignment by two parts:
- smoothly pass the assignment with maximum points available
- get as much experience and knowledge as this assignment can offer.
As for the first part, I would strictly follow the scenario provided in the assignment; as for the second one — and as someone who is constantly learning myself, I’d definitely recommend dedicating some time to it — creating your own scenario(s) (by adding new cells) and observing how it works will help you to gain the maximum amount of experience and knowledge from this assignment.
Best regards,
Dmitry.