I have problems solving exercise 1 of “Graded Lab : Tool Use and Reflective Agents“.
As I am new to python I guess my problem is quite stupid but I was not able to find the solution by myself.
This is how my code looks:
# mentor edit: code removed
My guess is that my input for “tool_call_id” and maybe also “content” is not correct as I get this error when running the unit tests:
Failed test case: generate_research_report_with_tools raised TypeError: Object of type ChatCompletionMessage is not JSON serializable.
Expected: no exception
Got: Object of type ChatCompletionMessage is not JSON serializable
Can anyone be so kind and point me to what I do wrong? Thanks!!!