Agentic AI Module 5 graded assignment

Hi there,

iam running into the below issue for module 5 for the ‘writer agent’ and the ‘editor agent’. Iam thinking this could be the error when Iam combining the system_msg and user_msg.

Failed test case: writer_agent raised LLMError: An error occurred: Error code: 400 - {‘error’: {‘message’: “Missing required parameter: ‘messages[0].content[0].type’.”, ‘type’: ‘invalid_request_error’, ‘param’: ‘messages[0].content[0].type’, ‘code’: ‘missing_required_parameter’}}. Expected: no exception Got: An error occurred: Error code: 400 - {‘error’: {‘message’: “Missing required parameter: ‘messages[0].content[0].type’.”, ‘type’: ‘invalid_request_error’, ‘param’: ‘messages[0].content[0].type’, ‘code’: ‘missing_required_parameter’}}

what is your system prompt!?

i suspect you probably missing one of roles in either system msg or user msg, as the messages code line which is a list of system and user msg, is not able to find any messages. So either your system prompt lack any defined instructions or subsequent codes in msg are missing a parameter variable name which the response is not able to read when invoking the chat response.

many learners also have reported not saving their work or deleting the kernel output also resolved their issue