Skip to content

Commit

Permalink
Initialize Go gRPC Client (#134)
Browse files Browse the repository at this point in the history
* Update Rust package name

* Initialize Go gRPC client
  • Loading branch information
Advayp authored Feb 10, 2025
1 parent 4cbd7cf commit 6997870
Show file tree
Hide file tree
Showing 9 changed files with 445 additions and 2 deletions.
8 changes: 8 additions & 0 deletions agents/client/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: generate_grpc_code
generate_grpc_code:
protoc \
--go_out=agent_service \
--go_opt=paths=source_relative \
--go-grpc_out=agent_service \
--go-grpc_opt=paths=source_relative \
agent_service.proto
18 changes: 18 additions & 0 deletions agents/client/agent_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";
package agent;
option go_package = "github.com/hcp-uw/doom-scrollers/agents/agent-client";

message TestMethodRequest {
string file_name = 1;
string prompt = 2;
}

message TestMethodResponse {
string status = 1;
string response = 2;
string error_message = 3;
}

service TestAgent {
rpc TestMethod (TestMethodRequest) returns (TestMethodResponse);
}
213 changes: 213 additions & 0 deletions agents/client/agent_service/agent_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 121 additions & 0 deletions agents/client/agent_service/agent_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions agents/client/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module github.com/hcp-uw/doom-scrollers/agents/agent-client

go 1.23.6

require (
google.golang.org/grpc v1.70.0
google.golang.org/protobuf v1.36.5
)

require (
golang.org/x/net v0.34.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.22.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250207221924-e9438ea467c6 // indirect
)
Loading

0 comments on commit 6997870

Please sign in to comment.