Skip to content

Commit 84f53ef

Browse files
committed
Disable Bobby's ability to send feedback.
Signed-off-by: Katharine Berry <ktbry@google.com>
1 parent 95f8102 commit 84f53ef

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

service/assistant/functions/feedback.go

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ package functions
1616

1717
import (
1818
"context"
19+
"log"
20+
1921
"github.com/pebble-dev/bobby-assistant/service/assistant/query"
2022
"github.com/pebble-dev/bobby-assistant/service/assistant/quota"
21-
"google.golang.org/genai"
22-
"log"
2323
)
2424

2525
type FeedbackInput struct {
@@ -28,34 +28,34 @@ type FeedbackInput struct {
2828
}
2929

3030
func init() {
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-
})
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+
//})
5959
}
6060

6161
func sendFeedbackImpl(ctx context.Context, quotaTracker *quota.Tracker, i any, requestChan chan<- map[string]any, responseChan <-chan map[string]any) any {

0 commit comments

Comments
 (0)