Add a bit of helpful info in an error message
This commit is contained in:
@@ -274,5 +274,5 @@ class LLMContext:
|
|||||||
return NOT_GIVEN
|
return NOT_GIVEN
|
||||||
else:
|
else:
|
||||||
raise TypeError(
|
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)}",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user