From d66c112149f35a3d92f992a99998b73dfe79f86d Mon Sep 17 00:00:00 2001 From: Gary Date: Thu, 5 Dec 2024 16:37:43 +0800 Subject: [PATCH] fix(agent): add description for tool (#532) Because tools have description This commit retrun tool description for FE --------- Co-authored-by: droplet-bot --- app/app/v1alpha/agent.proto | 2 ++ openapi/v2/service.swagger.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/app/app/v1alpha/agent.proto b/app/app/v1alpha/agent.proto index 3b027038..09268da6 100644 --- a/app/app/v1alpha/agent.proto +++ b/app/app/v1alpha/agent.proto @@ -52,6 +52,8 @@ message Tool { optional string name = 2 [(google.api.field_behavior) = OPTIONAL]; // The tool connection key(used connection id in recipe) and value(connection uid from namespace). map connections = 3 [(google.api.field_behavior) = OPTIONAL]; + // The tool description. + string description = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // CreateAgentRequest represents a request to create a agent. diff --git a/openapi/v2/service.swagger.yaml b/openapi/v2/service.swagger.yaml index 758cef04..4a08901a 100644 --- a/openapi/v2/service.swagger.yaml +++ b/openapi/v2/service.swagger.yaml @@ -10359,6 +10359,10 @@ definitions: additionalProperties: type: string description: The tool connection key(used connection id in recipe) and value(connection uid from namespace). + description: + type: string + description: The tool description. + readOnly: true title: tool definitions Trace: type: object