Closed
Description
Self Checks
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report (Language Policy).
- Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- Please do not modify this template :) and fill in all the required fields.
RAGFlow workspace code commit ID
RAGFlow image version
infiniflow/ragflow:v0.19.0-slim
Other environment information
Actual behavior
When calling the API /api/v1/agents/{agentId}/completions, the reference field in the response is empty, even though:
The Agent workflow is correctly configured:
The Start Component sets a knowledge base (kb) parameter.
The Knowledge Retrieval Component uses this kb variable.
When running the same Agent via the RAGFlow UI, the response includes valid references (as expected).
Expected behavior
The API response should return non-empty reference values, consistent with the UI behavior.
Steps to reproduce
1. In the agent workflow, set the kb parameter in the start component, and use the knowledge base variable in the retrieval component.

2. Run the Agent in the RAGFlow UI → Observe that reference is populated.
3. Calling the interface /api/v1/agents/{agentId}/completions, the returned reference is empty.

Additional information
No response