Skip to content

Commit a5f2837

Browse files
committed
🐛 Fix required fields
1 parent b2e31e4 commit a5f2837

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

cmd/agent/agent.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"google.golang.org/adk/cmd/launcher/full"
2222
"google.golang.org/adk/model/gemini"
2323
"google.golang.org/adk/tool"
24+
"google.golang.org/adk/tool/geminitool"
2425
"google.golang.org/adk/tool/mcptoolset"
2526
"google.golang.org/genai"
2627
)
@@ -97,6 +98,7 @@ func launch(ctx context.Context, writer io.Writer, args []string) {
9798
Model: m,
9899
Name: "YouTube Copilot",
99100
Instruction: instruction,
101+
Tools: []tool.Tool{geminitool.GoogleSearch{}},
100102
Toolsets: []tool.Toolset{mcpToolSet},
101103
},
102104
)

cmd/caption/insert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424

2525
var insertInSchema = &jsonschema.Schema{
2626
Type: "object",
27-
Required: []string{"file", "videoId"},
27+
Required: []string{"file", "video_id"},
2828
Properties: map[string]*jsonschema.Schema{
2929
"file": {Type: "string", Description: fileUsage},
3030
"audio_track_type": {

cmd/caption/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424

2525
var updateInSchema = &jsonschema.Schema{
2626
Type: "object",
27-
Required: []string{"videoId"},
27+
Required: []string{"video_id"},
2828
Properties: map[string]*jsonschema.Schema{
2929
"file": {Type: "string", Description: fileUsage},
3030
"audio_track_type": {

0 commit comments

Comments
 (0)