diff --git a/adk/human-in-the-loop/5_supervisor/main.go b/adk/human-in-the-loop/5_supervisor/main.go index 40ed3ad..fb1dbb6 100644 --- a/adk/human-in-the-loop/5_supervisor/main.go +++ b/adk/human-in-the-loop/5_supervisor/main.go @@ -48,7 +48,8 @@ func main() { query := "Check my checking account balance, and then transfer $500 from checking to savings account." fmt.Println("\n========================================") fmt.Println("User Query:", query) - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter := runner.Query(ctx, query, adk.WithCheckPointID("supervisor-1")) @@ -88,7 +89,8 @@ func main() { fmt.Println("\n========================================") fmt.Println("Resuming execution...") - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter, err = runner.ResumeWithParams(ctx, "supervisor-1", &adk.ResumeParams{ Targets: map[string]any{ diff --git a/adk/human-in-the-loop/6_plan-execute-replan/main.go b/adk/human-in-the-loop/6_plan-execute-replan/main.go index 36f21e9..875f108 100644 --- a/adk/human-in-the-loop/6_plan-execute-replan/main.go +++ b/adk/human-in-the-loop/6_plan-execute-replan/main.go @@ -51,7 +51,8 @@ Today is 2025-09-01.` fmt.Println("\n========================================") fmt.Println("User Query:", query) - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter := runner.Query(ctx, query, adk.WithCheckPointID("travel-plan-1")) @@ -103,7 +104,8 @@ Today is 2025-09-01.` fmt.Println("\n========================================") fmt.Println("Resuming execution...") - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter, err = runner.ResumeWithParams(ctx, "travel-plan-1", &adk.ResumeParams{ Targets: map[string]any{ diff --git a/adk/human-in-the-loop/6_plan-execute-replan/tools.go b/adk/human-in-the-loop/6_plan-execute-replan/tools.go index 57c08c9..9f0ac2a 100644 --- a/adk/human-in-the-loop/6_plan-execute-replan/tools.go +++ b/adk/human-in-the-loop/6_plan-execute-replan/tools.go @@ -61,24 +61,24 @@ type FlightBookingResponse struct { } type HotelBookingRequest struct { - City string `json:"city" jsonschema_description:"City to book hotel in"` - CheckIn string `json:"check_in" jsonschema_description:"Check-in date in YYYY-MM-DD format"` - CheckOut string `json:"check_out" jsonschema_description:"Check-out date in YYYY-MM-DD format"` - Guests int `json:"guests" jsonschema_description:"Number of guests"` - RoomType string `json:"room_type" jsonschema_description:"Room type preference (standard/deluxe/suite)"` + City string `json:"city" jsonschema_description:"City to book hotel in"` + CheckIn string `json:"check_in" jsonschema_description:"Check-in date in YYYY-MM-DD format"` + CheckOut string `json:"check_out" jsonschema_description:"Check-out date in YYYY-MM-DD format"` + Guests int `json:"guests" jsonschema_description:"Number of guests"` + RoomType string `json:"room_type" jsonschema_description:"Room type preference (standard/deluxe/suite)"` } type HotelBookingResponse struct { - BookingID string `json:"booking_id"` - HotelName string `json:"hotel_name"` - City string `json:"city"` - CheckIn string `json:"check_in"` - CheckOut string `json:"check_out"` - RoomType string `json:"room_type"` - PricePerNight int `json:"price_per_night"` - TotalPrice int `json:"total_price"` - Amenities []string `json:"amenities"` - Status string `json:"status"` + BookingID string `json:"booking_id"` + HotelName string `json:"hotel_name"` + City string `json:"city"` + CheckIn string `json:"check_in"` + CheckOut string `json:"check_out"` + RoomType string `json:"room_type"` + PricePerNight int `json:"price_per_night"` + TotalPrice int `json:"total_price"` + Amenities []string `json:"amenities"` + Status string `json:"status"` } type AttractionRequest struct { diff --git a/adk/human-in-the-loop/7_deep-agents/main.go b/adk/human-in-the-loop/7_deep-agents/main.go index 73da758..2ec94ce 100644 --- a/adk/human-in-the-loop/7_deep-agents/main.go +++ b/adk/human-in-the-loop/7_deep-agents/main.go @@ -49,7 +49,8 @@ func main() { fmt.Println("\n========================================") fmt.Println("User Query:", query) - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter := runner.Query(ctx, query, adk.WithCheckPointID("deep-analysis-1")) @@ -86,7 +87,8 @@ func main() { fmt.Println("\n========================================") fmt.Println("Resuming with your answers...") - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter, err = runner.ResumeWithParams(ctx, "deep-analysis-1", &adk.ResumeParams{ Targets: map[string]any{ diff --git a/adk/human-in-the-loop/7_deep-agents/tools.go b/adk/human-in-the-loop/7_deep-agents/tools.go index 5876844..aba2cd4 100644 --- a/adk/human-in-the-loop/7_deep-agents/tools.go +++ b/adk/human-in-the-loop/7_deep-agents/tools.go @@ -43,7 +43,7 @@ type SearchResult struct { } type AnalyzeRequest struct { - Data string `json:"data" jsonschema_description:"The data to analyze"` + Data string `json:"data" jsonschema_description:"The data to analyze"` AnalysisType string `json:"analysis_type" jsonschema_description:"Type of analysis (trend, comparison, summary, statistical)"` } diff --git a/adk/human-in-the-loop/8_supervisor-plan-execute/main.go b/adk/human-in-the-loop/8_supervisor-plan-execute/main.go index 7f40371..e2f87a2 100644 --- a/adk/human-in-the-loop/8_supervisor-plan-execute/main.go +++ b/adk/human-in-the-loop/8_supervisor-plan-execute/main.go @@ -51,7 +51,8 @@ and assigning a team of Alice, Bob, and Charlie starting from 2025-02-01.` fmt.Println("\n========================================") fmt.Println("User Query:", query) - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter := runner.Query(ctx, query, adk.WithCheckPointID("project-setup-1")) @@ -91,7 +92,8 @@ and assigning a team of Alice, Bob, and Charlie starting from 2025-02-01.` fmt.Println("\n========================================") fmt.Println("Resuming execution...") - fmt.Println("========================================\n") + fmt.Println("========================================") + fmt.Println() iter, err = runner.ResumeWithParams(ctx, "project-setup-1", &adk.ResumeParams{ Targets: map[string]any{ diff --git a/adk/human-in-the-loop/8_supervisor-plan-execute/tools.go b/adk/human-in-the-loop/8_supervisor-plan-execute/tools.go index 20f6b3b..a5c9db3 100644 --- a/adk/human-in-the-loop/8_supervisor-plan-execute/tools.go +++ b/adk/human-in-the-loop/8_supervisor-plan-execute/tools.go @@ -68,12 +68,12 @@ type AllocateBudgetRequest struct { } type AllocateBudgetResponse struct { - AllocationID string `json:"allocation_id"` - ProjectName string `json:"project_name"` - Amount float64 `json:"amount"` - Department string `json:"department"` + AllocationID string `json:"allocation_id"` + ProjectName string `json:"project_name"` + Amount float64 `json:"amount"` + Department string `json:"department"` RemainingBudget float64 `json:"remaining_budget"` - Status string `json:"status"` + Status string `json:"status"` } type AssignTeamRequest struct {