-
Notifications
You must be signed in to change notification settings - Fork 80
[plan] Support error handling strategy for built-in chat action. #406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
api/src/test/java/org/apache/flink/agents/api/resource/ResourceDescriptorTest.java
Show resolved
Hide resolved
| response, initial_request_id, model, messages, output_schema, ctx | ||
| ) | ||
| else: # if there is no tool call generated, return chat response directly | ||
| _clear_tool_call_context(ctx.sensory_memory, initial_request_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this when using sensory memory?
| tool_request_event_context = _remove_tool_request_event_context( | ||
| sensory_memory, request_id | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Since we're using sensory memory, do we still need to remove the context? This brings an extra memory update.
ffeaf91 to
ec29864
Compare
[api] Move agent api to agnets module in java. fix
fix [plan] Refactor built-in chat action in java.
fix [plan] Support error handling strategy for chat action in java. modify default max retries not manually clear sensory memory. fix fix
ec29864 to
9ca2888
Compare
xintongsong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Linked issue: #346
Purpose of change
Support retry/fail/ignore error handling strategy when chat occurs exception or response schema is not expected.
Tests
ut & it
API
No
Documentation
doc-neededdoc-not-needed