microsoft/autogen

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

Open

#4.964 aberto em 9 de jan. de 2025

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)Python (8.759 forks)batch import
help wantedproj-core

Métricas do repositório

Stars
 (58.033 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador