print the response in the warning (#2438)

This commit is contained in:
olgavrou 2024-04-18 14:17:09 -04:00 committed by GitHub
parent 4c7107c328
commit d5e30e09e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"):