Agent Executor (AX) is Google's open agentic orchestration runtime
Go
gemini: preserve function-call ID when Gemini assigns one (#297)
JoyceLiu329e7f40a630
diff --git a/internal/gemini/gemini_planner.go b/internal/gemini/gemini_planner.goindex b771748..659da4a 100644--- a/internal/gemini/gemini_planner.go+++ b/internal/gemini/gemini_planner.go@@ -239,7 +239,12 @@ func (p *geminiPlannerAgent) process(ctx context.Context, start *proto.AgentStar}if fc := part.FunctionCall; fc != nil {- fc.ID = uuid.NewString()+ // Preserve Gemini's function-call ID when the model assigns+ // one so it round-trips correctly in subsequent turns. Only+ // mint a UUID when the model leaves it empty.+ if fc.ID == "" {+ fc.ID = uuid.NewString()+ }switch fc.Name {case p.bashTool.Name():return "", false, p.bashTool.HandleCall(ctx, fc, handler)