fix: remove redundant newlines and apply gofmt formatting

Change-Id: I0e3b7a87011ff7a6a2d1c00f456f4c36569576a2
drew/english
shentong.martin 5 months ago committed by shentongmartin
parent 7c56672353
commit f3c86a123c

@ -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{

@ -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{

@ -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 {

@ -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{

@ -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)"`
}

@ -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{

@ -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 {

Loading…
Cancel
Save