@@ -2,13 +2,9 @@ syntax = "proto3";
2
2
3
3
package app.app.v1alpha ;
4
4
5
- import "app/app/v1alpha/agent.proto" ;
6
- import "app/app/v1alpha/conversation.proto" ;
7
5
import "common/healthcheck/v1beta/healthcheck.proto" ;
8
6
// Google API
9
7
import "google/api/field_behavior.proto" ;
10
- // Protocol Buffers Well-Known Types
11
- import "google/protobuf/timestamp.proto" ;
12
8
13
9
// LivenessRequest represents a request to check a service liveness status
14
10
message LivenessRequest {
@@ -33,178 +29,3 @@ message ReadinessResponse {
33
29
// HealthCheckResponse message
34
30
common.healthcheck.v1beta.HealthCheckResponse health_check_response = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
35
31
}
36
-
37
- /*
38
- This API is under development and, therefore, some of its entities and
39
- endpoints are not implemented yet. This section aims to give context about
40
- the current interface and how it fits in the App vision.
41
-
42
- # App
43
-
44
- The App domain is responsible of ready-to-use AI applications.
45
- */
46
-
47
- // App represents a app.
48
- message App {
49
- // The app id.
50
- string app_id = 1 [(google.api.field_behavior ) = REQUIRED ];
51
- // The app description.
52
- string description = 2 [(google.api.field_behavior ) = OPTIONAL ];
53
- // The creation time of the app.
54
- google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
55
- // The last update time of the app.
56
- google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
57
- // The owner/namespace of the app.
58
- string owner_uid = 5 [(google.api.field_behavior ) = OUTPUT_ONLY ];
59
- // The app tags.
60
- repeated string tags = 6 [(google.api.field_behavior ) = OPTIONAL ];
61
- // metadata for the app.
62
- oneof metadata {
63
- // The AI assistant app metadata.
64
- AIAssistantAppMetadata ai_assistant_app = 7 [(google.api.field_behavior ) = OUTPUT_ONLY ];
65
- // The AI agent app metadata.
66
- AIAgentAppMetadata ai_agent_app = 8 [(google.api.field_behavior ) = OUTPUT_ONLY ];
67
- }
68
- // The app type.
69
- AppType app_type = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
70
- // app uid
71
- string app_uid = 10 [(google.api.field_behavior ) = OUTPUT_ONLY ];
72
- // creator uid
73
- string creator_uid = 11 [(google.api.field_behavior ) = OUTPUT_ONLY ];
74
- }
75
-
76
- // AIAssistantAppMetadata represents the metadata for the AI assistant app.
77
- message AIAssistantAppMetadata {
78
- // The AI assistant app catalog uid.
79
- string catalog_uid = 1 [(google.api.field_behavior ) = REQUIRED ];
80
- // The AI assistant app top k.
81
- int32 top_k = 2 [(google.api.field_behavior ) = REQUIRED ];
82
- }
83
-
84
- // AppType represents the type of the app.
85
- enum AppType {
86
- // AppType is not specified.
87
- APP_TYPE_UNSPECIFIED = 0 ;
88
- // AppType is a AI assistant app.
89
- APP_TYPE_AI_ASSISTANT = 1 ;
90
- // AppType is a AI agent app.
91
- APP_TYPE_AI_AGENT = 2 ;
92
- }
93
-
94
- // CreateAppRequest represents a request to create a app.
95
- message CreateAppRequest {
96
- // The app's owner(namespaces).
97
- string namespace_id = 1 [(google.api.field_behavior ) = REQUIRED ];
98
- // The app id.
99
- // the app id should be lowercase without any space or special character besides the hyphen,
100
- // it can not start with number or hyphen, and should be less than 32 characters.
101
- string id = 2 [(google.api.field_behavior ) = REQUIRED ];
102
- // The app description.
103
- string description = 3 [(google.api.field_behavior ) = OPTIONAL ];
104
- // The app tags.
105
- repeated string tags = 4 [(google.api.field_behavior ) = OPTIONAL ];
106
- // app type(default is APP_TYPE_AI_ASSISTANT)
107
- AppType app_type = 5 [(google.api.field_behavior ) = REQUIRED ];
108
- // app metadata
109
- oneof metadata {
110
- // ai assistant app metadata
111
- AIAssistantAppMetadata ai_assistant_app = 6 [(google.api.field_behavior ) = OPTIONAL ];
112
- // ai agent app metadata
113
- AIAgentAppMetadata ai_agent_app = 7 [(google.api.field_behavior ) = OPTIONAL ];
114
- }
115
- }
116
-
117
- // CreateAppResponse represents a response for creating a app.
118
- message CreateAppResponse {
119
- // The created app.
120
- App app = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
121
- }
122
-
123
- // Request message for ListApps
124
- message ListAppsRequest {
125
- // User ID for which to list the apps
126
- string namespace_id = 1 [(google.api.field_behavior ) = REQUIRED ];
127
- // app type(default is APP_TYPE_AI_ASSISTANT)
128
- AppType app_type = 2 [(google.api.field_behavior ) = OPTIONAL ];
129
- }
130
-
131
- // GetAppsResponse represents a response for getting all apps from users.
132
- message ListAppsResponse {
133
- // The apps container.
134
- repeated App apps = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
135
- }
136
-
137
- // UpdateAppRequest represents a request to update a app.
138
- message UpdateAppRequest {
139
- // Namespace id.
140
- string namespace_id = 1 [(google.api.field_behavior ) = REQUIRED ];
141
- // App id.
142
- string app_id = 2 [(google.api.field_behavior ) = REQUIRED ];
143
- // The app id needs to follow the kebab case format.
144
- // if the new app id is not provided, the app id will not be updated.
145
- string new_app_id = 3 [(google.api.field_behavior ) = OPTIONAL ];
146
- // The app description.
147
- // If the new description is empty, the description will be set to empty.
148
- string new_description = 4 [(google.api.field_behavior ) = OPTIONAL ];
149
- // The app tags.
150
- // If the new tags is empty, the tags will be set to empty.
151
- repeated string new_tags = 5 [(google.api.field_behavior ) = OPTIONAL ];
152
- // last AI assistant app catalog uid
153
- // If the last AI assistant app catalog uid is empty, the last AI assistant app catalog uid will be set to empty.
154
- string last_ai_assistant_app_catalog_uid = 6 [(google.api.field_behavior ) = OPTIONAL ];
155
- // last AI assistant app top k
156
- // If the last AI assistant app top k is empty, the last AI assistant app top k will be set to empty.
157
- int32 last_ai_assistant_app_top_k = 7 [(google.api.field_behavior ) = OPTIONAL ];
158
- // update app metadata
159
- oneof metadata {
160
- // ai assistant app metadata
161
- AIAssistantAppMetadata ai_assistant_app = 8 [(google.api.field_behavior ) = OPTIONAL ];
162
- // ai agent app metadata
163
- AIAgentAppMetadata ai_agent_app = 9 [(google.api.field_behavior ) = OPTIONAL ];
164
- }
165
- }
166
-
167
- // UpdateAppResponse represents a response for updating a app.
168
- message UpdateAppResponse {
169
- // The updated app.
170
- App app = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
171
- }
172
-
173
- // DeleteAppRequest represents a request to delete a app.
174
- message DeleteAppRequest {
175
- // The owner's id. i.e. namespace.
176
- string namespace_id = 1 [(google.api.field_behavior ) = REQUIRED ];
177
- // The app id.
178
- string app_id = 2 [(google.api.field_behavior ) = REQUIRED ];
179
- }
180
-
181
- // DeleteAppResponse represents a response for deleting a app.
182
- message DeleteAppResponse {}
183
-
184
- // RestartPlaygroundConversationRequest represents a request to restart a playground conversation.
185
- message RestartPlaygroundConversationRequest {
186
- // The namespace id.
187
- string namespace_id = 1 [(google.api.field_behavior ) = REQUIRED ];
188
- // The app id.
189
- string app_id = 2 [(google.api.field_behavior ) = REQUIRED ];
190
- }
191
-
192
- // RestartPlaygroundConversationResponse represents a response for restarting a playground conversation.
193
- message RestartPlaygroundConversationResponse {
194
- // conversation
195
- Conversation conversation = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
196
- }
197
-
198
- // GetPlaygroundConversationRequest represents a request to get a playground conversation.
199
- message GetPlaygroundConversationRequest {
200
- // The namespace id.
201
- string namespace_id = 1 [(google.api.field_behavior ) = REQUIRED ];
202
- // The app id.
203
- string app_id = 2 [(google.api.field_behavior ) = REQUIRED ];
204
- }
205
-
206
- // GetPlaygroundConversationResponse represents a response for getting a playground conversation.
207
- message GetPlaygroundConversationResponse {
208
- // conversation
209
- Conversation conversation = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
210
- }
0 commit comments