Class AlloyDBToolError (0.17.0)

Raised when an AlloyDB AI function returns NULL.

That happens, for example, when the model's reply isn't one of the expected answers. invoke / ainvoke raise this error like any other. Because it is a ToolException, a tool created with handle_tool_error=True returns its message to the agent instead. Database errors (DBAPIError), such as an unknown model, always raise.