Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions adk/prebuilt/deep/deep.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ func buildBuiltinAgentMiddlewares(withoutWriteTodos bool) ([]adk.AgentMiddleware
}

type TODO struct {
Content string `json:"content"`
Status string `json:"status" jsonschema:"enum=pending,enum=in_progress,enum=completed"`
Content string `json:"content"`
ActiveForm string `json:"activeForm"`
Status string `json:"status" jsonschema:"enum=pending,enum=in_progress,enum=completed"`
}

type writeTodosArguments struct {
Expand Down
2 changes: 1 addition & 1 deletion adk/prebuilt/deep/deep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestWriteTodos(t *testing.T) {

wt := m[0].AdditionalTools[0].(tool.InvokableTool)

todos := `[{"content":"content1","status":"pending"},{"content":"content2","status":"pending"}]`
todos := `[{"content":"content1","activeForm":"","status":"pending"},{"content":"content2","activeForm":"","status":"pending"}]`
args := fmt.Sprintf(`{"todos": %s}`, todos)

result, err := wt.InvokableRun(context.Background(), args)
Expand Down