Files
semantic-kernel/samples/java/JavaReferenceSkill
+64 6d574f263b Java: Merge java-development into main (#3361)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Mark Wallace <[email protected]>
Co-authored-by: Teresa Hoang <[email protected]>
Co-authored-by: Gil LaHaye <[email protected]>
Co-authored-by: Craig Presti <[email protected]>
Co-authored-by: adityachallapally <[email protected]>
Co-authored-by: Devis Lucato <[email protected]>
Co-authored-by: Gina Triolo <[email protected]>
Co-authored-by: Adrian Bonar <[email protected]>
Co-authored-by: Gudge <[email protected]>
Co-authored-by: Shawn Callegari <[email protected]>
Co-authored-by: Roger Barreto <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Jadyn <[email protected]>
Co-authored-by: Lee Miller <[email protected]>
Co-authored-by: name <email>
Co-authored-by: Milder Hernandez Cagua <[email protected]>
Co-authored-by: Milder Hernandez <[email protected]>
Co-authored-by: Yoshio Terada <[email protected]>
Co-authored-by: Almir Kazazic <[email protected]>
Co-authored-by: Alexander Siniouguine <[email protected]>
Co-authored-by: Harleen Thind <[email protected]>
Co-authored-by: David Barkol <[email protected]>
Co-authored-by: Mark Karle <[email protected]>
Co-authored-by: poweihuang0817 <[email protected]>
Co-authored-by: Po-Wei Huang <[email protected]>
Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Co-authored-by: Adrian Bonar (HE/HIM) <[email protected]>
Co-authored-by: Tao Chen <[email protected]>
Co-authored-by: Vivien Hung <[email protected]>
Co-authored-by: Abby Harrison <[email protected]>
Co-authored-by: Abby Harrison <[email protected]>
Co-authored-by: Devis Lucato <[email protected]>
Co-authored-by: fabio fumarola <[email protected]>
Co-authored-by: cdMSFT <[email protected]>
Co-authored-by: Dmytro Struk <[email protected]>
Co-authored-by: Lex Li <[email protected]>
Co-authored-by: Damir Dobric <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aman Sachan <[email protected]>
Co-authored-by: Joowon <[email protected]>
Co-authored-by: Richard Edgar <[email protected]>
Co-authored-by: nacharya1 <[email protected]>
Co-authored-by: Kevdome3000 <[email protected]>
Co-authored-by: tech <[email protected]>
Co-authored-by: Masumi Morishige <[email protected]>
Co-authored-by: Alex Chao <[email protected]>
Co-authored-by: Alex Chao <[email protected]>
Co-authored-by: markwallace-microsoft <[email protected]>
Co-authored-by: David Grieve <[email protected]>
Co-authored-by: Bruno Borges <[email protected]>
Co-authored-by: Martijn Verburg <[email protected]>
Co-authored-by: Luigi Montoya <[email protected]>
Co-authored-by: joe-braley <[email protected]>
Co-authored-by: Luigi96 <[email protected]>
Co-authored-by: GitHub <[email protected]>
Co-authored-by: Derek Keeler <[email protected]>
Co-authored-by: Joe Braley <[email protected]>
Co-authored-by: Craig Presti <[email protected]>
Co-authored-by: cschadewitz <[email protected]>
Co-authored-by: Desmond Howard <[email protected]>
Co-authored-by: Jean-Sylvain Boige <[email protected]>
Co-authored-by: Dave Arlin <[email protected]>
Co-authored-by: Ben Thomas <[email protected]>
Co-authored-by: Ben Thomas <[email protected]>
Co-authored-by: Sebastian Santoyo <[email protected]>
Co-authored-by: sneha <[email protected]>
Co-authored-by: Alisha Maddy <[email protected]>
Co-authored-by: Alisha Maddy <[email protected]>
Co-authored-by: Sneha <[email protected]>
Co-authored-by: Guy Bowerman <[email protected]>
Co-authored-by: kshitijcode <[email protected]>
Co-authored-by: dantelmomsft <[email protected]>
Co-authored-by: Vikram Seshadri <[email protected]>
2023-11-03 13:50:38 +00:00
..
2023-05-08 16:32:42 -07:00
2023-05-08 16:32:42 -07:00
2023-05-08 16:32:42 -07:00

Java Reference Skill gRPC Server

This is a sample Java gRPC server that can be invoked via SK's gRPC client as a Native Skill/Function. The purpose of this project is to demonstrate how Polyglot skills can be supported using either REST or gRPC.

Prerequisites

  • Java 17
  • Maven

Build

To build the project, run the following command:

mvn clean package

To generate the gRPC classes, run the following command:

mvn protobuf:compile

Run

To run the project, run the following command:

java -jar ./target/JavaReferenceSkill-1.0-SNAPSHOT-jar-with-dependencies.jar