microsoft/autogen

[Python] Fine-grained exception class for "recipient not found" in Core

Open

#4,964 建立於 2025年1月9日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)Python (8,759 fork)batch import
help wantedproj-core

倉庫指標

Star
 (58,033 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

What I did

Sent a message to an agent before the runtime had actually been created. Caught an Exception object from this line as neither my agent or the runtime had been properly set up.

What I was expecting

A more specific Exception object that I could target to handle this case. I currently need to check for this specific error string to avoid catching every Exception that might by raised by the runtime.

貢獻者指南