Skip to content

Commit

Permalink
fix(agent): add description for tool (#532)
Browse files Browse the repository at this point in the history
Because

tools have description 

This commit

retrun tool description for FE

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
Yougigun and droplet-bot authored Dec 5, 2024
1 parent 6b09567 commit d66c112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app/v1alpha/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> 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.
Expand Down
4 changes: 4 additions & 0 deletions openapi/v2/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d66c112

Please sign in to comment.