Skip to content

[Issue]: About retrieve_content and code execution in call_rag_chat #1769

@szwang-seedtech

Description

@szwang-seedtech

Describe the issue

I was following the agentchat_groupchat_RAG.ipynb https://github.com/microsoft/autogen/blob/main/notebook/agentchat_groupchat_RAG.ipynb

When I was using call_rag_chat, sometimes the agent will refuse to execute the code and terminate the conversation, but sometimes works fine. If I remove the retrieve_content part in call_rag_chat, then all the code will be executed by agents without any problem.

  1. If I only listed user in register_for_execution, I will have the execution code problem occationally
  2. if I listed user and other assistant agents in register_for_execution, I will have the error "openai.BadRequestError: Error code: 400 - {'error': {'message': "None is not of type 'object' - 'messages.2.function_call'", 'type': 'invalid_request_error', 'param': None, 'code': None}}" occationally

Does anyone have any clue, or is it a bug?

Steps to reproduce

No response

Screenshots and logs

This is what I mean by "refuse to execute the code and terminate the conversation"
Screenshot 2024-02-23 182733

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions