Skip to content

[Issue]: no docs on how to catch executor exceptions (or if possible in "speaker_selection_method") #2524

@Morriz

Description

@Morriz

Describe the issue

When UserProxyAgent runs code generated by a "coder" agent it throws an exception when it is invalid code. How can we catch such exceptions (preferably in the speaker_selection_method function) so that we can let the previous agent (coder) retry?

Steps to reproduce

try the sample code on page https://microsoft.github.io/autogen/docs/topics/groupchat/customized_speaker_selection

when the code is not correct the chain fails and does not recover

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 codebasecode-executionexecute generated codegroup chat/teamsgroup-chat-related issuesneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions