Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(agent): rename app-backend to agent-backend #548

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package app.app.v1alpha;
package agent.agent.v1alpha;

import "common/healthcheck/v1beta/healthcheck.proto";
// Google API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
syntax = "proto3";

package app.app.v1alpha;
package agent.agent.v1alpha;

// App definitions
import "app/app/v1alpha/app.proto";
import "app/app/v1alpha/chat.proto";
import "app/app/v1alpha/table.proto";
// Agent definitions
import "agent/agent/v1alpha/agent.proto";
import "agent/agent/v1alpha/chat.proto";
import "agent/agent/v1alpha/table.proto";
// Google API
import "google/api/annotations.proto";
import "google/api/visibility.proto";
// OpenAPI definition
import "protoc-gen-openapiv2/options/annotations.proto";

// AppPublicService exposes the public endpoints that allow clients to
// manage apps.
service AppPublicService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = {description: "Public App endpoints"};
// AgentPublicService exposes the public endpoints that allow clients to
// manage agents.
service AgentPublicService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = {description: "Public Agent endpoints"};

// Check if the app server is alive
// Check if the agent server is alive
//
// See https://github.com/grpc/grpc/blob/master/doc/health-checking.md.
rpc Liveness(LivenessRequest) returns (LivenessResponse) {
option (google.api.http) = {
get: "/v1alpha/__liveness"
additional_bindings: [
{get: "/v1alpha/health/app"}]
{get: "/v1alpha/health/agent"}]
};
option (google.api.method_visibility).restriction = "INTERNAL";
}

// Check if the app server is ready
// Check if the agent server is ready
//
// See https://github.com/grpc/grpc/blob/master/doc/health-checking.md
rpc Readiness(ReadinessRequest) returns (ReadinessResponse) {
option (google.api.http) = {
get: "/v1alpha/__readiness"
additional_bindings: [
{get: "/v1alpha/ready/app"}]
{get: "/v1alpha/ready/agent"}]
};
option (google.api.method_visibility).restriction = "INTERNAL";
}
Expand All @@ -50,7 +50,7 @@ service AppPublicService {
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -64,7 +64,7 @@ service AppPublicService {
rpc ListChats(ListChatsRequest) returns (ListChatsResponse) {
option (google.api.http) = {get: "/v1alpha/namespaces/{namespace_id}/chats"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -81,7 +81,7 @@ service AppPublicService {
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -95,7 +95,7 @@ service AppPublicService {
rpc DeleteChat(DeleteChatRequest) returns (DeleteChatResponse) {
option (google.api.http) = {delete: "/v1alpha/namespaces/{namespace_id}/chats/{chat_uid}"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -112,7 +112,7 @@ service AppPublicService {
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -126,7 +126,7 @@ service AppPublicService {
rpc ListMessages(ListMessagesRequest) returns (ListMessagesResponse) {
option (google.api.http) = {get: "/v1alpha/namespaces/{namespace_id}/chats/{chat_uid}/messages"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -143,7 +143,7 @@ service AppPublicService {
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -157,7 +157,7 @@ service AppPublicService {
rpc DeleteMessage(DeleteMessageRequest) returns (DeleteMessageResponse) {
option (google.api.http) = {delete: "/v1alpha/namespaces/{namespace_id}/chats/{chat_uid}/messages/{message_uid}"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand All @@ -176,7 +176,7 @@ service AppPublicService {
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "🍎 App"
tags: "🍎 Agent"
extensions: {
key: "x-stage"
value: {string_value: "alpha"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package app.app.v1alpha;
package agent.agent.v1alpha;

// Google API
import "google/api/field_behavior.proto";
Expand Down Expand Up @@ -161,7 +161,7 @@ message DeleteChatResponse {}
message CreateMessageRequest {
// namespace id
string namespace_id = 1 [(google.api.field_behavior) = REQUIRED];
// app id
// chag uid
string chat_uid = 2 [(google.api.field_behavior) = REQUIRED];
// message content
string content = 3 [(google.api.field_behavior) = REQUIRED];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package app.app.v1alpha;
package agent.agent.v1alpha;

// Google API
import "google/api/field_behavior.proto";
Expand Down
4 changes: 2 additions & 2 deletions openapi/v2/conf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
description: "Data orchestration for unified unstructured data representation."
},
{
name: "🍎 App"
description: "Ready-to-use AI applications."
name: "🍎 Agent"
description: "Ready-to-use AI agents."
},
{
name: "Table"
Expand Down
Loading
Loading