microsoft/autogen

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

开放

#4,964 创建于 2025年1月9日

 (7 条评论) (0 个反应) (0 位负责人)Python (8,759 个派生)batch import
help wantedproj-core

仓库指标

星标
 (58,033 个星标)
PR 合并指标
 (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.

贡献者指南