Skip to content

fix(report): include Python execution results - #576

Open
March-77 wants to merge 4 commits into
spring-ai-alibaba:mainfrom
March-77:agent/issue-407-report-python-output
Open

March-77 wants to merge 4 commits into
spring-ai-alibaba:mainfrom
March-77:agent/issue-407-report-python-output

Conversation

@March-77

Copy link
Copy Markdown
Contributor

Describe what this PR does / why we need it

Reports currently receive SQL results and the natural-language Python analysis, but not the processed data emitted by Python itself. When Python aggregates or reshapes SQL data for visualization, the report model can therefore build charts from stale SQL input instead of the computed result.

Does this pull request fix one issue?

Fixes #407

Describe how you did it

  • Preserve each Python execution output in the step-scoped execution result map.
  • Include that structured output in the report prompt separately from the SQL result and Python analysis.
  • Apply the same state shape in fallback mode.
  • Add regression coverage for both state propagation and final report prompt construction.

Describe how to verify it

JAVA_HOME=<jdk17> ./mvnw -pl data-agent-management -Dtest=PythonAnalyzeNodeTest,ReportGeneratorNodeTest test
JAVA_HOME=<jdk17> ./mvnw -pl data-agent-management test

Results: targeted tests 17/17 passed; full management module 1631/1631 passed; Checkstyle reported 0 violations.

Special notes for reviews

SQL results, Python structured output, and Python narrative analysis remain separate prompt sections so the report model can distinguish source data from computed data.

@March-77

March-77 commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Applied spring-javaformat to PythonAnalyzeNodeTest in 2c042d2. spring-javaformat:validate passes, and PythonAnalyzeNodeTest plus ReportGeneratorNodeTest pass (17 tests).

March-77 added 2 commits July 27, 2026 10:46
…ort-python-output

# Conflicts:
#	data-agent-management/src/test/java/com/alibaba/cloud/ai/dataagent/workflow/node/python/PythonAnalyzeNodeTest.java
@March-77

Copy link
Copy Markdown
Contributor Author

Quick review follow-up: this PR is still mergeable, its latest CI workflows are all green, and there are no unresolved review threads. I rechecked current main and related PRs; the Python execution-result propagation is not present or superseded. When convenient, could a maintainer please review it? Thanks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 报告节点中,传入的参数,没有python执行后结果,只有python分析节点的结果

1 participant