How knowledge integration shapes the effectiveness of agentic systems