Issues in Graded Labs

Before you post, please make sure to:

  1. Add a clear title Issues in Graded Lab for Module 3 even if the all tests passed.

  2. Add all required tags in the tag option (top-right of the post):

    • The platform (e.g., dl-ai-learning-platform or Coursera-platform.)

    • TAgentic AI/ Module 3

  3. Write a detailed description of your issue.

Note: Screenshots are welcome, but please do not post full assignment code.

I am trying to submit the corrected labs. ALl unit test passed but a code line which was wrong 1 week back and corrected since, the grading system still failing showing the old code:
Course: Agentic AI
Module 3 : Graded Assignemnt : C1M3_Assignment

I have corrected the code still showing me this :slight_smile:
Failed test case: generate_research_report_with_tools raised AttributeError: 'ChatCompletionMessageFunctionToolCall' object has no attribute 'caller_id'.
Expected:
no exception,
but got:
'ChatCompletionMessageFunctionToolCall' object has no attribute 'caller_id'.

Thanks

Hi smitashree_choudhury,

Passing the unit tests does not ensure passing the final grader.

The error that you report points to the use of caller_id in your code. As the error indicates, caller_id is not an attribute of ChatCompletionMessageFunctionToolCall. Check the description of that object under point 2, where it is part of the ChatCompletionMessage object. Are you sure you reference the id of a tool_call correctly?

And did you save your notebook before submitting it?