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 8fd1f1f
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ message GatewayResponse {
QueryStatus queryStatus = 17; // Status of requested queries

ChatResponse chatResponse = 18;
ToolCall toolCall = 19;
ToolResponse toolResponse = 20;
ToolStart toolStart = 19;
ToolFinish toolFinish = 20;
}
}

Expand Down Expand Up @@ -229,25 +229,57 @@ 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 ToolCall {
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 {
repeated ChangeByReferenceSummary changeSummaries = 1;
}

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

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

Expand Down

0 comments on commit 8fd1f1f

Please sign in to comment.