mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-19 21:54:17 -04:00
cf5f5f41f4
Update the structured output validation in the Anthropic LLM tests to ensure that errors preserve the response. Modify the GenerateContent method to return a non-nil response alongside typed errors for structured-output validation failures. Additionally, implement checks for model support of structured output, rejecting legacy models that do not support it. This change improves error handling and ensures that structured output is correctly validated across different models.