You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Send feedback from the user to the developers. Only call this if the user specifically asks to send feedback. Include the thread if you want to provide context for the feedback. Feedback text is optional but recommended if include_thread is true.",
36
-
Parameters: &genai.Schema{
37
-
Type: genai.TypeObject,
38
-
Nullable: &f,
39
-
Properties: map[string]*genai.Schema{
40
-
"feedback": {
41
-
Type: genai.TypeString,
42
-
Description: "The feedback from the user to send to the developers.",
43
-
Nullable: &f,
44
-
},
45
-
"include_thread": {
46
-
Type: genai.TypeBoolean,
47
-
Description: "Whether to include this whole conversation as context in the feedback.",
48
-
Nullable: &f,
49
-
},
50
-
},
51
-
Required: []string{"include_thread"},
52
-
},
53
-
},
54
-
Cb: sendFeedbackImpl,
55
-
Thought: sendFeedbackThought,
56
-
InputType: FeedbackInput{},
57
-
Capability: "send_feedback",
58
-
})
31
+
//f := false
32
+
//registerFunction(Registration{
33
+
// Definition: genai.FunctionDeclaration{
34
+
// Name: "send_feedback",
35
+
// Description: "Send feedback from the user to the developers. Only call this if the user specifically asks to send feedback. Include the thread if you want to provide context for the feedback. Feedback text is optional but recommended if include_thread is true.",
36
+
// Parameters: &genai.Schema{
37
+
// Type: genai.TypeObject,
38
+
// Nullable: &f,
39
+
// Properties: map[string]*genai.Schema{
40
+
// "feedback": {
41
+
// Type: genai.TypeString,
42
+
// Description: "The feedback from the user to send to the developers.",
43
+
// Nullable: &f,
44
+
// },
45
+
// "include_thread": {
46
+
// Type: genai.TypeBoolean,
47
+
// Description: "Whether to include this whole conversation as context in the feedback.",
48
+
// Nullable: &f,
49
+
// },
50
+
// },
51
+
// Required: []string{"include_thread"},
52
+
// },
53
+
// },
54
+
// Cb: sendFeedbackImpl,
55
+
// Thought: sendFeedbackThought,
56
+
// InputType: FeedbackInput{},
57
+
// Capability: "send_feedback",
58
+
//})
59
59
}
60
60
61
61
funcsendFeedbackImpl(ctx context.Context, quotaTracker*quota.Tracker, iany, requestChanchan<-map[string]any, responseChan<-chanmap[string]any) any {
0 commit comments