-
Notifications
You must be signed in to change notification settings - Fork 79
[Feature][runtime] Support the use of Java ChatModel in Python #373
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
[Feature][runtime] Support the use of Java ChatModel in Python #373
Conversation
|
Hi, @Sxnan and @wenjin272. Could you please review this PR? Thank you! |
b0bdc21 to
2595858
Compare
wenjin272
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.
Hi, @GreatEugenius, thanks for your work. Overall looks good to me.
A major comment is could we unify the representation of ResourceProvider in both Python and Java to reduce the complexity for its serialization and deserialization.
runtime/src/main/java/org/apache/flink/agents/runtime/python/utils/JavaResourceAdapter.java
Show resolved
Hide resolved
runtime/src/main/java/org/apache/flink/agents/runtime/python/utils/JavaResourceAdapter.java
Show resolved
Hide resolved
.../src/main/java/org/apache/flink/agents/plan/serializer/ResourceProviderJsonDeserializer.java
Outdated
Show resolved
Hide resolved
2595858 to
aa950bd
Compare
|
Hi @wenjin272, I have addressed all the comments and supported ResourceDescriptor serialization and deserialization. Please take a look. |
eaf807a to
8522ba4
Compare
8522ba4 to
47d520b
Compare
wenjin272
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.
api/src/main/java/org/apache/flink/agents/api/resource/ResourceDescriptor.java
Show resolved
Hide resolved
api/src/main/java/org/apache/flink/agents/api/resource/ResourceDescriptor.java
Outdated
Show resolved
Hide resolved
65b7451 to
b41aa17
Compare
|
Hi @xintongsong, please take a look at your convenience. |
runtime/src/main/java/org/apache/flink/agents/runtime/python/utils/PythonActionExecutor.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/flink/agents/api/resource/ResourceDescriptor.java
Outdated
Show resolved
Hide resolved
b41aa17 to
bcf14ff
Compare
|
Hi @xintongsong, I have addressed all the comments. Please take a look. |
41bba58 to
4a214a0
Compare
4a214a0 to
1a848b5
Compare
Linked issue: #354
Purpose of change
Support the use of the Java ChatModel in Python Flink Agent jobs.
Tests
Unit tests and end-to-end test
API
no
Documentation
doc-neededdoc-not-needed