mirror of https://github.com/microsoft/autogen.git
print the response in the warning (#2438)
This commit is contained in:
parent
4c7107c328
commit
d5e30e09e8
|
@ -1324,7 +1324,7 @@ class ConversableAgent(LLMAgent):
|
|||
extracted_response = llm_client.extract_text_or_completion_object(response)[0]
|
||||
|
||||
if extracted_response is None:
|
||||
warnings.warn("Extracted_response from {response} is None.", UserWarning)
|
||||
warnings.warn(f"Extracted_response from {response} is None.", UserWarning)
|
||||
return None
|
||||
# ensure function and tool calls will be accepted when sent back to the LLM
|
||||
if not isinstance(extracted_response, str) and hasattr(extracted_response, "model_dump"):
|
||||
|
|
Loading…
Reference in New Issue