- Implemented new gRPC service `AIService` in `proto/ai/v1/ai.proto` for handling natural language queries. - Generated Go code for the gRPC service and messages in `gen/ai/v1/`. - Created `services/ai-gateway/` directory structure with necessary files for the service. - Added configuration loading and structured logging. - Implemented domain logic for intent parsing and interaction with Home Assistant. - Established outbound adapters for Ollama and Home Assistant with mTLS support. - Updated `go.work` to include the new service and maintain existing dependencies. - Modified `discord-bot` to use the new `ai-gateway` for AI interactions. - Added deployment manifest for Kubernetes and CI/CD configuration for building and deploying the service.
21 lines
343 B
Protocol Buffer
21 lines
343 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ai.v1;
|
|
|
|
option go_package = "gitea.nik4nao.com/nik/home-services/gen/ai/v1;aiv1";
|
|
|
|
service AIService {
|
|
rpc Query(QueryRequest) returns (QueryResponse);
|
|
}
|
|
|
|
message QueryRequest {
|
|
string text = 1;
|
|
string source = 2;
|
|
}
|
|
|
|
message QueryResponse {
|
|
string reply = 1;
|
|
string intent = 2;
|
|
bool action_taken = 3;
|
|
}
|