Skip to content

[Bug]: ConversableAgent.generate_code_execution_reply should scan all messages not just most recent #3304

Closed
@axecopfire

Description

@axecopfire

Describe the bug

ConversableAgent.generate_code_execution_reply only scans last messages and breaks instead of continues

Steps to reproduce

No response

Model Used

No response

Expected Behavior

The break statements here should be continue statements

if "role" not in message:
break
elif message["role"] != "user":
break

Screenshots and logs

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions