Skip to content

Commit d68aadd

Browse files
chore: change message of finish tool
1 parent d424c8d commit d68aadd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/builtin/builtin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var tools = map[string]types.Tool{
114114
Parameters: types.Parameters{
115115
Description: "Concludes the conversation. This can not be used to ask a question.",
116116
Arguments: types.ObjectSchema(
117-
"summary", "A summary of the dialog",
117+
"return", "The instructed value to return or a summary of the dialog if no value is instructed",
118118
),
119119
},
120120
BuiltinFunc: SysChatFinish,
@@ -640,7 +640,7 @@ func (e *ErrChatFinish) Error() string {
640640

641641
func SysChatFinish(ctx context.Context, env []string, input string) (string, error) {
642642
var params struct {
643-
Message string `json:"summary,omitempty"`
643+
Message string `json:"return,omitempty"`
644644
}
645645
if err := json.Unmarshal([]byte(input), &params); err != nil {
646646
return "", &ErrChatFinish{

0 commit comments

Comments
 (0)