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 93b7d39
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -229,25 +229,60 @@ 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 {
int32 numberItems = 1;
}

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

message ChangeByReferenceSummary {
string title = 1; // from ChangeProperties
bytes UUID = 2; // from ChangeMetadata
google.protobuf.Timestamp createdAt = 3; // From ChangeMetadata
string owner = 4; // From ChangeProperties
int32 numAffectedItems = 5; // From ChangeMetadata
}

message ChangesByReferenceToolResponse {
string type = 1;
string uniqueAttributeValue = 2;
string scope = 3;
repeated ChangeByReferenceSummary changeSummaries = 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 93b7d39

Please sign in to comment.