wenjin272 commented on PR #1450:
URL: https://github.com/apache/flink-agents/pull/1450#issuecomment-7162921575
Thanks for improving the error reporting!
Could we traverse the full cause chain in `ChatModelInvoker.errorText()`
before saving the error text for durable replay?
The Anthropic SDK wraps network failures as `AnthropicIoException("Request
failed", cause)`, and our integration adds another wrapper. Reading only the
immediate cause still loses the actual reason, such as `SocketTimeoutException:
read timed out`. Once persisted as text, that information cannot be recovered
later.
I suggest keeping the exception types and messages along the cause chain in
the common formatter, and removing the extra cause-message concatenation from
the Anthropic integration to avoid duplication.
Could we also add a test with a nested network exception and verify that the
underlying reason is preserved after serializing and replaying the invocation
outcome?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]