-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(artifact&app): design agent related api (#520)
Because agent will use a lot of artifact and app funciton. This commit try to reuse the old catalog api and ai assistant api. --------- Co-authored-by: droplet-bot <[email protected]>
- Loading branch information
1 parent
240c559
commit b85ba0e
Showing
6 changed files
with
276 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
syntax = "proto3"; | ||
|
||
package app.app.v1alpha; | ||
|
||
// Google API | ||
import "google/api/field_behavior.proto"; | ||
import "google/protobuf/struct.proto"; | ||
|
||
// AIAgentAppMetadata represents the metadata for the AI agent app. | ||
message AIAgentAppMetadata { | ||
// The instructions for the AI agent app. | ||
string instructions = 1 [(google.api.field_behavior) = OPTIONAL]; | ||
// The tools(pipelines) that the AI agent app can use. | ||
repeated Tool tools = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
// The catalog uids that the AI agent app can use. | ||
repeated string catalog_uids = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
// The AI agent app top k. | ||
int32 chunk_top_k = 4 [(google.api.field_behavior) = OPTIONAL]; | ||
// The AI agent chunk weight. | ||
float chunk_weight = 5 [(google.api.field_behavior) = OPTIONAL]; | ||
} | ||
|
||
// tool definitions | ||
message Tool { | ||
// The tool name. e.g. ["preset/[email protected]", "preset/[email protected]"]. | ||
string name = 1 [(google.api.field_behavior) = REQUIRED]; | ||
// The tool config | ||
google.protobuf.Struct config = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.