Skip to content

Commit

Permalink
add all tool responses and calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tphoney committed Aug 13, 2024
1 parent 05f4506 commit d10bf20
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -229,25 +229,62 @@ message ToolMetadata {
message QueryToolCall {
string type = 1;
string method = 2;
string id = 3;
string uniqueAttributeValue = 3;
string scope = 4;
}

message QueryToolResponse {
int32 numberItems = 1;
}

message RelationshipToolCall {
string type = 1;
string uniqueAttributeValue = 2;
string scope = 3;
}

message RelationshipToolResponse {
string type = 1;
string uniqueAttributeValue = 2;
string scope = 3;
}

message ChangesByReferenceToolCall {
string type = 1;
string uniqueAttributeValue = 2;
string scope = 3;
}

message ChangesByReference {
string title = 1; // from ChangeProperties
// link to change ??
google.protobuf.Timestamp createdAt = 2; // From ChangeMetatdata
string owner = 3; // From ChangeProperties
int32 numAffectedItems = 4; // From ChangeMetatdata
}

message ChangesByReferenceToolResponse {
string type = 1;
string uniqueAttributeValue = 2;
string scope = 3;
repeated ChangesByReference changesByReference = 4;
}

message ToolCall {
ToolMetadata metadata = 1;
oneof call_type {
QueryToolCall query = 2;
RelationshipToolCall relationship = 3;
ChangesByReferenceToolCall changesByReference = 4;
}
}

message ToolResponse {
ToolMetadata metadata = 1;
oneof response_type {
QueryToolResponse query =2;
QueryToolResponse query = 2;
RelationshipToolResponse relationship = 3;
ChangesByReferenceToolResponse changesByReference = 4;
}
}

Expand Down

0 comments on commit d10bf20

Please sign in to comment.