Add a bit of helpful info in an error message

This commit is contained in:
Paul Kompfner
2025-08-19 10:45:12 -04:00
parent a962459151
commit 12064bd6e6

View File

@@ -274,5 +274,5 @@ class LLMContext:
return NOT_GIVEN
else:
raise TypeError(
"In LLMContext, tools must be a ToolsSchema object or NOT_GIVEN.",
f"In LLMContext, tools must be a ToolsSchema object or NOT_GIVEN. Got type: {type(tools)}",
)