From d10bf207d56576e9afc1e0d373863f1f9425e078 Mon Sep 17 00:00:00 2001 From: TP Honey Date: Tue, 13 Aug 2024 14:53:42 +0100 Subject: [PATCH] add all tool responses and calls --- gateway.proto | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/gateway.proto b/gateway.proto index 97ab95f..f09bbdc 100644 --- a/gateway.proto +++ b/gateway.proto @@ -229,7 +229,7 @@ message ToolMetadata { message QueryToolCall { string type = 1; string method = 2; - string id = 3; + string uniqueAttributeValue = 3; string scope = 4; } @@ -237,17 +237,54 @@ 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; } }