Commit Graph
2 Commits
Author SHA1 Message Date
John Oliver 2b86b1f82c Java: Update version and groupId for release (#1958)
Set correct groupId and move to alpha version
2023-07-12 11:39:16 +01:00
972d8782a5 gRPC skills functionality (#814)
### Motivation and Context

This PR adds MVP functionality for gRPC skills by introducing a set of
classes for importing, parsing and executing gRPC operations defined in
the .proto files. This functionality may be useful in scenarios when
skills are represented as methods that are hosted on a different machine
and need to be called remotely.

### Description
The PR adds the following classes:
- ProtoDocumentParser - iterates over a all methods of all services
declared in .proto file and creates an instance of GrpcOperation model
class for each of them.
- GrpcOperation - model class representing gRPC operation.
- GrpcOperationRunner - accepts an instance of the GrpcOperation class
and a collection of arguments. Dynamically creates an instance of gRPC
method request and calls the method. Receives, transforms and returns
the method call result.
- GrpcOperationExtensions - extension methods for GrpcOperation to
extend the class with SK SDK domain related functionality.
- KernelGrpcExtensions - declares a few register and import methods for
importing the gRPC skills from a folder or a file and registering them
in SK Kernel.


Co-authored-by: Shawn Callegari <[email protected]>
Co-authored-by: Govind Kamtamneni <[email protected]>
2023-05-08 16:32:42 -07:00