This commit is contained in:
lilong.129
2025-05-22 22:52:47 +08:00
parent 3b77ade24f
commit 009bfa4ecb
9 changed files with 421 additions and 571 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ type PlanningOptions struct {
// PlanningResult represents the result of planning
type PlanningResult struct {
ToolCalls []schema.ToolCall `json:"tool_calls"` // TODO: merge to NextActions
NextActions []ParsedAction `json:"actions"`
Actions []Action `json:"actions"`
ActionSummary string `json:"summary"`
Error string `json:"error,omitempty"`
}
@@ -138,7 +138,7 @@ func (p *Planner) Call(ctx context.Context, opts *PlanningOptions) (*PlanningRes
log.Info().
Interface("summary", result.ActionSummary).
Interface("actions", result.NextActions).
Interface("actions", result.Actions).
Msg("get VLM planning result")
return result, nil
}