letaoj opened a new pull request, #225:
URL: https://github.com/apache/flink-agents/pull/225
<!--
* Thank you very much for contributing to Flink Agents.
* Please add the relevant components in the PR title. E.g., [api],
[runtime], [java], [python], [hotfix], etc.
-->
<!-- Please link the PR to the relevant issue(s). Hotfix doesn't need this.
-->
Linked issue: #xxx
### Purpose of change
<!-- What is the purpose of this change? -->
Adding an example usage of SingleAgent in java
### Tests
<!-- How is this change verified? -->
For some reason, the result is always shifting between these two reasons and
the score is always 1...
```
❯ cd examples; java --add-opens java.base/java.util=ALL-UNNAMED --add-opens
java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.lang.reflect=ALL-UNNAMED --add-opens
java.base/java.text=ALL-UNNAMED --add-opens
java.desktop/java.awt.font=ALL-UNNAMED -cp "target/classes:$(mvn
dependency:build-classpath -q -Dmdep.outputFile=/dev/stdout)"
org.apache.flink.agents.examples.WorkflowSingleAgentExample; cd ..
ProductReviewAnalysisRes{id='1', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='2', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='3', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='3', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='1', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='2', score=1, reasons=[The product broke after a
short period of use.]}
ProductReviewAnalysisRes{id='2', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='1', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='2', score=1, reasons=[The headphones broke
after one week of use.]}
ProductReviewAnalysisRes{id='2', score=1, reasons=[The headphones broke
after one week of use.]}
```
### API
<!-- Does this change touches any public APIs? -->
### Documentation
<!-- Should this change be covered by the user documentation?-->
--
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]